ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexCoord3f)
This commit is contained in:
parent
65ec35b732
commit
e8f6476e8c
1 changed files with 6 additions and 0 deletions
|
@ -687,6 +687,12 @@ void R_ShowTextures( void )
|
||||||
pglTexParameteri( image->target, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE );
|
pglTexParameteri( image->target, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE );
|
||||||
|
|
||||||
pglBegin( GL_QUADS );
|
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 )
|
if( image->target == GL_TEXTURE_CUBE_MAP_ARB )
|
||||||
{
|
{
|
||||||
pglTexCoord3f( 0.75 * cbm_cos - cbm_sin, 0.75 * cbm_sin + cbm_cos, 1.0 );
|
pglTexCoord3f( 0.75 * cbm_cos - cbm_sin, 0.75 * cbm_sin + cbm_cos, 1.0 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue