summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/Render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/Render.cpp8
1 files 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<GLContext> 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);