mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-20 00:11:32 +00:00
Fix gl_ext_multitexturing set to 1
This commit is contained in:
parent
4b1c43e98a
commit
cf7d2645cc
2 changed files with 5 additions and 11 deletions
|
@ -284,14 +284,8 @@ LM_BeginBuildingLightmaps ( model_t *m )
|
|||
R_Bind( gl_state.lightmap_textures + 0 );
|
||||
qglTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
|
||||
qglTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
|
||||
qglTexImage2D( GL_TEXTURE_2D,
|
||||
0,
|
||||
gl_lms.internal_format,
|
||||
BLOCK_WIDTH, BLOCK_HEIGHT,
|
||||
0,
|
||||
GL_LIGHTMAP_FORMAT,
|
||||
GL_UNSIGNED_BYTE,
|
||||
dummy );
|
||||
qglTexImage2D( GL_TEXTURE_2D, 0, gl_lms.internal_format, BLOCK_WIDTH, BLOCK_HEIGHT,
|
||||
0, GL_LIGHTMAP_FORMAT, GL_UNSIGNED_BYTE, dummy );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -927,8 +927,6 @@ R_DrawBrushModel ( entity_t *e )
|
|||
R_TexEnv( GL_REPLACE );
|
||||
R_SelectTexture( QGL_TEXTURE1 );
|
||||
|
||||
R_DrawInlineBModel();
|
||||
|
||||
if ( !gl_config.mtexcombine )
|
||||
{
|
||||
R_TexEnv( GL_REPLACE );
|
||||
|
@ -976,6 +974,9 @@ R_DrawBrushModel ( entity_t *e )
|
|||
}
|
||||
}
|
||||
|
||||
R_DrawInlineBModel();
|
||||
R_EnableMultitexture( false );
|
||||
|
||||
qglPopMatrix();
|
||||
}
|
||||
|
||||
|
@ -1198,7 +1199,6 @@ R_DrawWorld ( void )
|
|||
}
|
||||
|
||||
R_RecursiveWorldNode( r_worldmodel->nodes );
|
||||
|
||||
R_EnableMultitexture( false );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue