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

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

0 Members and 1 Guest are viewing this topic.

Gabriel_

  • Newbie
  • *
  • Posts: 1
    • 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);

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9573
    • 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
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

 

anything