Skip to content

Commit 588b1ad

Browse files
committed
OpenGL Renderer: Remove extraneous glFinish() calls that cause a minor performance loss on older GPUs. (Regression from commit 8238c35.)
1 parent 2f4fab6 commit 588b1ad

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

desmume/src/OGLRender.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,8 +3135,6 @@ Render3DError OpenGLRenderer::ApplyRenderingSettings(const GFX3D_State &renderSt
31353135
return OGLERROR_BEGINGL_FAILED;
31363136
}
31373137

3138-
glFinish();
3139-
31403138
const bool didSelectedMultisampleSizeChange = (this->_selectedMultisampleSize != CommonSettings.GFX3D_Renderer_MultisampleSize);
31413139
const bool didEmulateNDSDepthCalculationChange = (this->_emulateNDSDepthCalculation != CommonSettings.OpenGL_Emulation_NDSDepthCalculation);
31423140
const bool didEnableTextureSmoothingChange = (this->_enableTextureSmoothing != CommonSettings.GFX3D_Renderer_TextureSmoothing);
@@ -3200,7 +3198,6 @@ Render3DError OpenGLRenderer::ApplyRenderingSettings(const GFX3D_State &renderSt
32003198
}
32013199
}
32023200

3203-
glFinish();
32043201
ENDGL();
32053202
return error;
32063203
}

0 commit comments

Comments
 (0)