Skip to content

Commit

Permalink
ref: gl: gl2_shim: fix int vs GLuint
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Feb 2, 2025
1 parent 2466aba commit 9356ff7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ref/gl/gl2_shim/gl2_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static void APIENTRY GL2_BindTexture( GLenum tex, GLuint obj )
static char *GL_PrintInfoLog( GLhandleARB object, qboolean program )
{
static char msg[8192];
int maxLength = 0;
GLuint maxLength = 0;

if( program && pglGetProgramiv )
pglGetProgramiv( object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength );
Expand Down Expand Up @@ -282,8 +282,8 @@ static GLuint GL2_GenerateShader( gl2wrap_prog_t *prog, GLenum type )

static gl2wrap_prog_t *GL2_GetProg( const GLuint flags )
{
int i, loc, status;
GLuint vp, fp, glprog;
int i, loc;
GLuint status = 0, vp, fp, glprog;
gl2wrap_prog_t *prog;

// try to find existing prog matching this feature set
Expand Down Expand Up @@ -352,6 +352,7 @@ static gl2wrap_prog_t *GL2_GetProg( const GLuint flags )
pglGetProgramiv( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );
else
pglGetObjectParameterivARB( glprog, GL_OBJECT_LINK_STATUS_ARB, &status );

if( status == GL_FALSE )
{
gEngfuncs.Con_Reportf( S_ERROR "%s: Failed linking progs for 0x%04x!\n%s\n", __func__, prog->flags, GL_PrintInfoLog( glprog, true ));
Expand Down

0 comments on commit 9356ff7

Please sign in to comment.