Skip to content

Commit

Permalink
ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexC…
Browse files Browse the repository at this point in the history
…oord3f)
  • Loading branch information
a1batross committed Oct 8, 2024
1 parent 65ec35b commit e8f6476
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ref/gl/gl_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ void R_ShowTextures( void )
pglTexParameteri( image->target, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE );

pglBegin( GL_QUADS );

#if XASH_GLES
#undef pglTexCoord3f
#define pglTexCoord3f( s, t, u ) pglTexCoord2f( s, t ) // not really correct but it requires nanogl rework
#endif // XASH_GLES

if( image->target == GL_TEXTURE_CUBE_MAP_ARB )
{
pglTexCoord3f( 0.75 * cbm_cos - cbm_sin, 0.75 * cbm_sin + cbm_cos, 1.0 );
Expand Down

0 comments on commit e8f6476

Please sign in to comment.