ref: gl: fix incorrect usage of GL_Bind in R_ShowTextures (it accepts engine's texture id, not opengl texture name)

This commit is contained in:
Alibek Omarov
2025-09-06 01:26:43 +05:00
parent 699e178f62
commit 7c83aafbf5

View File

@@ -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 );