Browse Source

ref_gl: fix typo

pull/2/head
mittorn 1 year ago committed by Alibek Omarov
parent
commit
c9c1286803
  1. 8
      ref/gl/gl2_shim/gl2_shim.c
  2. 2
      ref/gl/gl_export.h
  3. 2
      ref/gl/gl_opengl.c

8
ref/gl/gl2_shim/gl2_shim.c

@ -207,8 +207,8 @@ static char *GL_PrintInfoLog( GLhandleARB object, qboolean program )
static char msg[8192]; static char msg[8192];
int maxLength = 0; int maxLength = 0;
if( program && pglProgramiv) if( program && pglGetProgramiv)
pglProgramiv( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength ); pglGetProgramiv( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );
else else
pglGetObjectParameterivARB( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength ); pglGetObjectParameterivARB( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );
@ -358,8 +358,8 @@ static gl2wrap_prog_t *GL2_GetProg( const GLuint flags )
/// TODO: detect arb/core shaders in engine /// TODO: detect arb/core shaders in engine
if( pglProgramiv ) if( pglGetProgramiv )
pglProgramiv( glprog, GL_OBJECT_LINK_STATUS_ARB, &status ); pglGetProgramiv( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
else else
pglGetObjectParameterivARB( glprog, GL_OBJECT_LINK_STATUS_ARB, &status ); pglGetObjectParameterivARB( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
if ( status == GL_FALSE ) if ( status == GL_FALSE )

2
ref/gl/gl_export.h

@ -1374,7 +1374,7 @@ APIENTRY_LINKAGE void GL_FUNCTION( glSwapInterval ) ( int interval );
// arb shaders change in core // arb shaders change in core
APIENTRY_LINKAGE void GL_FUNCTION( glDeleteProgram )(GLuint program); 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); APIENTRY_LINKAGE void GL_FUNCTION( glGetProgramInfoLog )(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
// gl2shim deps // gl2shim deps

2
ref/gl/gl_opengl.c

@ -379,7 +379,7 @@ static dllfunc_t shaderobjectsfuncs_gles[] =
{ "glVertexAttrib2f" , (void **)&pglVertexAttrib2fARB }, { "glVertexAttrib2f" , (void **)&pglVertexAttrib2fARB },
{ "glVertexAttrib2fv" , (void **)&pglVertexAttrib2fvARB }, { "glVertexAttrib2fv" , (void **)&pglVertexAttrib2fvARB },
{ "glVertexAttrib3fv" , (void **)&pglVertexAttrib3fvARB }, { "glVertexAttrib3fv" , (void **)&pglVertexAttrib3fvARB },
{ "glProgramiv" , (void**)&pglProgramiv }, { "glGetProgramiv" , (void**)&pglGetProgramiv },
{ "glDeleteProgram" , (void**)&pglDeleteProgram }, { "glDeleteProgram" , (void**)&pglDeleteProgram },
{ "glGetProgramInfoLog" , (void **)&pglGetProgramInfoLog }, { "glGetProgramInfoLog" , (void **)&pglGetProgramInfoLog },
//{ "glVertexAttrib4f" , (void **)&pglVertexAttrib4fARB }, //{ "glVertexAttrib4f" , (void **)&pglVertexAttrib4fARB },

Loading…
Cancel
Save