Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sprite disappearing after recreating window  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite disappearing after recreating window
« on: June 17, 2020, 05:38:43 pm »
I'm really new to SFML.
After i recreate a window one of my sprites disappears.
It's the sprite that i use to make the fade effect and it has a completely black 1080x1080 texture

this is the code that i used to recreate the window:

mainWindow->create(sf::VideoMode(screenX, screenY), "Game", sf::Style::Fullscreen);


  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Sprite disappearing after recreating window
« Reply #1 on: June 17, 2020, 06:16:45 pm »
Are you still drawing it?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
Dev Blog: https://duerrenberger.dev/blog/