OGL: Only set GL_PROGRAM_POINT_SIZE on desktop GL
It is always enabled in GLES.
This commit is contained in:
parent
f2a594fad5
commit
6553cf8bb1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue