Skip to content

Commit

Permalink
ref_gl: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Oct 13, 2023
1 parent 7b89702 commit abafde0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ref/gl/gl2_shim/gl2_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ static char *GL_PrintInfoLog( GLhandleARB object, qboolean program )
static char msg[8192];
int maxLength = 0;

if( program && pglProgramiv)
pglProgramiv( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );
if( program && pglGetProgramiv)
pglGetProgramiv( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );
else
pglGetObjectParameterivARB( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );

Expand Down Expand Up @@ -358,8 +358,8 @@ static gl2wrap_prog_t *GL2_GetProg( const GLuint flags )

/// TODO: detect arb/core shaders in engine

if( pglProgramiv )
pglProgramiv( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
if( pglGetProgramiv )
pglGetProgramiv( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
else
pglGetObjectParameterivARB( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
if ( status == GL_FALSE )
Expand Down
2 changes: 1 addition & 1 deletion ref/gl/gl_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ APIENTRY_LINKAGE void GL_FUNCTION( glSwapInterval ) ( int interval );

// arb shaders change in core
APIENTRY_LINKAGE void GL_FUNCTION( glDeleteProgram )(GLuint program);
APIENTRY_LINKAGE void GL_FUNCTION( glProgramiv )(GLuint program, GLenum e, GLuint *v);
APIENTRY_LINKAGE void GL_FUNCTION( glGetProgramiv )(GLuint program, GLenum e, GLuint *v);
APIENTRY_LINKAGE void GL_FUNCTION( glGetProgramInfoLog )(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);

// gl2shim deps
Expand Down
2 changes: 1 addition & 1 deletion ref/gl/gl_opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ static dllfunc_t shaderobjectsfuncs_gles[] =
{ "glVertexAttrib2f" , (void **)&pglVertexAttrib2fARB },
{ "glVertexAttrib2fv" , (void **)&pglVertexAttrib2fvARB },
{ "glVertexAttrib3fv" , (void **)&pglVertexAttrib3fvARB },
{ "glProgramiv" , (void**)&pglProgramiv },
{ "glGetProgramiv" , (void**)&pglGetProgramiv },
{ "glDeleteProgram" , (void**)&pglDeleteProgram },
{ "glGetProgramInfoLog" , (void **)&pglGetProgramInfoLog },
//{ "glVertexAttrib4f" , (void **)&pglVertexAttrib4fARB },
Expand Down

0 comments on commit abafde0

Please sign in to comment.