From 7c83aafbf5b4a1552d9a2ef128fd282eef2d1431 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 6 Sep 2025 01:26:43 +0500 Subject: [PATCH] ref: gl: fix incorrect usage of GL_Bind in R_ShowTextures (it accepts engine's texture id, not opengl texture name) --- ref/gl/gl_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_backend.c b/ref/gl/gl_backend.c index 01dc9556..c4ef54b9 100644 --- a/ref/gl/gl_backend.c +++ b/ref/gl/gl_backend.c @@ -709,7 +709,7 @@ void R_ShowTextures( void ) y = k / base_w * gpGlobals->height / base_h; pglColor4f( 1.0f, 1.0f, 1.0f, 1.0f ); - GL_Bind( XASH_TEXTURE0, image->texnum ); + GL_Bind( XASH_TEXTURE0, i ); if( FBitSet( image->flags, TF_DEPTHMAP ) && !FBitSet( image->flags, TF_NOCOMPARE )) pglTexParameteri( image->target, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE );