Skip to content
Permalink
Browse files

OpenGL Renderer: Fix bug where resizing the framebuffer may cause sub…

…sequent rendering to fail. This bug affected OpenGL 3.2 only. (Regression from commit fa8cf5a.)
  • Loading branch information...
rogerman committed Mar 18, 2019
1 parent fe428fd commit be2735b3c502c79522e554c9461c478f229f9ccf
Showing with 1 addition and 0 deletions.
  1. +1 −0 desmume/src/OGLRender_3_2.cpp
@@ -1316,6 +1316,7 @@ void OpenGLRenderer_3_2::ResizeMultisampledFBOs(GLsizei numSamples)
glTexImage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, numSamples, GL_RGBA, w, h, GL_TRUE);
glActiveTexture(GL_TEXTURE0 + OGLTextureUnitID_FinalColor);
glTexImage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, numSamples, GL_RGBA, w, h, GL_TRUE);
glActiveTexture(GL_TEXTURE0);
}
else
{

0 comments on commit be2735b

Please sign in to comment.
You can’t perform that action at this time.