From e8f6476e8c89040b7a53fcffdd18fa947e0af820 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 9 Oct 2024 00:31:05 +0300 Subject: [PATCH] ref: gl: patch to compile with nanogl (nanogl doesn't impement glTexCoord3f) --- ref/gl/gl_backend.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ref/gl/gl_backend.c b/ref/gl/gl_backend.c index 9f9e0c07..45ad73eb 100644 --- a/ref/gl/gl_backend.c +++ b/ref/gl/gl_backend.c @@ -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 );