Skip to content

Commit

Permalink
Merge pull request #387 from bkoropoff/drawweapon-hires
Browse files Browse the repository at this point in the history
GL: draw weapon sprite at full resolution
  • Loading branch information
kraflab authored Jul 20, 2024
2 parents 060e57c + 629ce6c commit 02021e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prboom2/src/gl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,6 @@ void gld_EndDrawScene(void)
glViewport(0, 0, SCREENWIDTH, SCREENHEIGHT);
gld_Set2DMode();

glsl_PushMainShader();
R_DrawPlayerSprites();
glsl_PopMainShader();

// e6y
// Effect of invulnerability uses a colormap instead of hard-coding now
// See nuts.wad
Expand Down Expand Up @@ -1089,6 +1085,10 @@ void gld_EndDrawScene(void)
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
}

glsl_PushMainShader();
R_DrawPlayerSprites();
glsl_PopMainShader();

glColor3f(1.0f,1.0f,1.0f);
glDisable(GL_SCISSOR_TEST);
glDisable(GL_ALPHA_TEST);
Expand Down

0 comments on commit 02021e9

Please sign in to comment.