From 5457932d75a02b11569add9180d085fce0fc588b Mon Sep 17 00:00:00 2001 From: rogerman Date: Sat, 18 Feb 2023 16:31:38 -0800 Subject: [PATCH] OpenGL Renderer: Fix bug where the Depth L-Equal Polygon Facing option would fail to become enabled when running OpenGL 3.2 or later. (Regression from commit ab38d17. Note that this bug does affect the 0.9.13 release build.) --- desmume/src/OGLRender_3_2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/OGLRender_3_2.cpp b/desmume/src/OGLRender_3_2.cpp index 8edd37deb..49f0c7cc7 100644 --- a/desmume/src/OGLRender_3_2.cpp +++ b/desmume/src/OGLRender_3_2.cpp @@ -791,6 +791,7 @@ Render3DError OpenGLRenderer_3_2::InitExtensions() INFO("OpenGL: Driver does not support at least 2x multisampled FBOs.\n"); } + this->_isDepthLEqualPolygonFacingSupported = this->isShaderSupported && this->isVBOSupported && this->isFBOSupported; this->_enableMultisampledRendering = ((this->_selectedMultisampleSize >= 2) && this->isMultisampledFBOSupported); this->InitFinalRenderStates(&oglExtensionSet); // This must be done last