From 6553cf8bb1b7424c76f1a4165502d7e4250ccaa9 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 21 Apr 2019 12:36:41 +1000 Subject: [PATCH] OGL: Only set GL_PROGRAM_POINT_SIZE on desktop GL It is always enabled in GLES. --- Source/Core/VideoBackends/OGL/Render.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index a357a8d2dc..546556c440 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -652,6 +652,10 @@ Renderer::Renderer(std::unique_ptr main_gl_context, float backbuffer_ // Desktop OpenGL can't have the Android Extension Pack g_ogl_config.bSupportsAEP = false; + + // Desktop GL requires GL_PROGRAM_POINT_SIZE set to use gl_PointSize in shaders. + // It is implicitly enabled in GLES. + glEnable(GL_PROGRAM_POINT_SIZE); } // Either method can do early-z tests. See PixelShaderGen for details. @@ -1108,8 +1112,6 @@ void Renderer::CheckForSurfaceResize() void Renderer::BeginUtilityDrawing() { ::Renderer::BeginUtilityDrawing(); - - glEnable(GL_PROGRAM_POINT_SIZE); if (g_ActiveConfig.backend_info.bSupportsDepthClamp) { glDisable(GL_CLIP_DISTANCE0); @@ -1120,8 +1122,6 @@ void Renderer::BeginUtilityDrawing() void Renderer::EndUtilityDrawing() { ::Renderer::EndUtilityDrawing(); - - glDisable(GL_PROGRAM_POINT_SIZE); if (g_ActiveConfig.backend_info.bSupportsDepthClamp) { glEnable(GL_CLIP_DISTANCE0);