New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty RenderTexture after recreating window #1625
Comments
binary1248
added a commit
that referenced
this issue
Dec 8, 2019
…context has to be tracked. In the case a context is re-created, FBO RenderTextures would not trigger resetting of the OpenGL states if they were drawn to first since re-initialization of the RenderTarget only happens when a context owner such as a RenderWindow is re-created. Fixes #1625.
This should be fixed in #1630. |
eXpl0it3r
pushed a commit
that referenced
this issue
Jan 2, 2020
…context has to be tracked. In the case a context is re-created, FBO RenderTextures would not trigger resetting of the OpenGL states if they were drawn to first since re-initialization of the RenderTarget only happens when a context owner such as a RenderWindow is re-created. Fixes #1625.
Baardi
pushed a commit
to Baardi/SFML
that referenced
this issue
Jan 8, 2020
…context has to be tracked. In the case a context is re-created, FBO RenderTextures would not trigger resetting of the OpenGL states if they were drawn to first since re-initialization of the RenderTarget only happens when a context owner such as a RenderWindow is re-created. Fixes SFML#1625.
Unarelith
pushed a commit
to Unarelith/SFML
that referenced
this issue
May 28, 2020
…context has to be tracked. In the case a context is re-created, FBO RenderTextures would not trigger resetting of the OpenGL states if they were drawn to first since re-initialization of the RenderTarget only happens when a context owner such as a RenderWindow is re-created. Fixes SFML#1625.
Unarelith
pushed a commit
to Unarelith/SFML
that referenced
this issue
May 28, 2020
…context has to be tracked. In the case a context is re-created, FBO RenderTextures would not trigger resetting of the OpenGL states if they were drawn to first since re-initialization of the RenderTarget only happens when a context owner such as a RenderWindow is re-created. Fixes SFML#1625.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
Recreating RenderWindow causes Texts in RenderTexture to disappear.
Your environment
Windows 10,
SFML 2.5.2
MSVC C++17
Steps to reproduce
Compile and run the following code. Notice the commented line.
Expected behavior
Nothing to change.
Actual behavior
The texts disappear.
The text was updated successfully, but these errors were encountered: