mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexCoord3f)
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user