Skip to content
Permalink
Browse files

OGL: Only set GL_PROGRAM_POINT_SIZE on desktop GL

It is always enabled in GLES.
  • Loading branch information...
stenzek committed Apr 21, 2019
1 parent f2a594f commit 6553cf8bb1b7424c76f1a4165502d7e4250ccaa9
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);

0 comments on commit 6553cf8

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