Skip to content
Snippets Groups Projects
  • Sryder's avatar
    77af3a8f
    Optimise the screen texture setup for SDL2, Post-processor, and wipes. · 77af3a8f
    Sryder authored
    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.
    77af3a8f
    History
    Optimise the screen texture setup for SDL2, Post-processor, and wipes.
    Sryder authored
    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.