diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index e7dabbbefb..2b923fa4ac 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -600,7 +600,7 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, } if (fProgramBinarySupport) { GrGLint count; - GR_GL_GetIntegerv(gli, GR_GL_NUM_PROGRAM_BINARY_FORMATS, &count); + GR_GL_GetIntegerv(gli, GR_GL_NUM_SHADER_BINARY_FORMATS, &count); fProgramBinarySupport = count > 0; } diff --git a/src/gpu/gl/GrGLDefines.h b/src/gpu/gl/GrGLDefines.h index 8e7809f642..30d0a4c2f9 100644 --- a/src/gpu/gl/GrGLDefines.h +++ b/src/gpu/gl/GrGLDefines.h @@ -559,6 +559,7 @@ #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A #define GR_GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE 0x8F63 #define GR_GL_SHADER_BINARY_FORMATS 0x8DF8 +#define GR_GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 /* StencilFunction */ #define GR_GL_NEVER 0x0200 @@ -851,9 +852,6 @@ #define GR_GL_SHADER_BINARY_FORMATS 0x8DF8 #define GR_GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 -/* Program Binary */ -#define GR_GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE - /* Shader Precision-Specified Types */ #define GR_GL_LOW_FLOAT 0x8DF0 #define GR_GL_MEDIUM_FLOAT 0x8DF1