Prevention measures for OpenGL ES 2.0

This commit is contained in:
VoxelTek 2025-07-16 17:51:21 +10:00 committed by GitHub
parent 77893921d8
commit d6eae83772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -718,6 +718,7 @@ void OpenGLES2Renderer::Flip()
void OpenGLES2Renderer::Draw2DImage(Uint32 textureId, const SDL_Rect& srcRect, const SDL_Rect& dstRect, FColor color) void OpenGLES2Renderer::Draw2DImage(Uint32 textureId, const SDL_Rect& srcRect, const SDL_Rect& dstRect, FColor color)
{ {
SDL_GL_MakeCurrent(DDWindow, m_context);
m_dirty = true; m_dirty = true;
glBindFramebuffer(GL_FRAMEBUFFER, m_fbo); glBindFramebuffer(GL_FRAMEBUFFER, m_fbo);