Skip to content

Commit

Permalink
Vulkan: added missing texture mode setup in GL_SetDefaultState()
Browse files Browse the repository at this point in the history
Merge of ec-/Quake3e@d90d628

Fixes issue of r_textureMode not functioning until it was changed at least once in vulkan.
  • Loading branch information
ensiform committed Mar 5, 2024
1 parent a97dc2a commit d42d0f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderervk/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,8 @@ const void *RB_TakeVideoFrameCmd( const void *data )
static void GL_SetDefaultState( void )
{
#ifdef USE_VULKAN
GL_TextureMode( r_textureMode->string );

glState.glStateBits = GLS_DEPTHTEST_DISABLE | GLS_DEPTHMASK_TRUE;
#else
int i;
Expand Down

0 comments on commit d42d0f8

Please sign in to comment.