Skip to content
Snippets Groups Projects
Commit 77af3a8f authored by Sryder's avatar Sryder
Browse files

Optimise the screen texture setup for SDL2, Post-processor, and wipes.

Only use glCopyTexImage2D when first creating the screen texture, use glCopyTexSubImage2D anytime after that as it does not define a new texture each time.
Flushing of the screen textures has been implemented for when the screen size changes (so that the screen textures don't stay at a wrong size) and the game is closed, I believe they would leave a memory leak before.
parent 67ee1637
No related branches found
No related tags found
2 merge requests!252OpenGL: Public flatsprite: The Fixening,!237Opengl Quick Fixes
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment