Skip to content

Commit

Permalink
FREESCAPE: removed useless gl calls in the shader renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
neuromancer committed Aug 9, 2023
1 parent 7c3a2a5 commit c419090
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions engines/freescape/gfx_opengl_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,6 @@ void OpenGLShaderRenderer::renderCrossair(const Common::Point crossairPosition)
_triangleShader->setUniform("useStipple", false);
_triangleShader->setUniform("mvpMatrix", identity);

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, _screenW, _screenH, 0, 0, 1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glEnable(GL_BLEND);
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);

Expand Down

0 comments on commit c419090

Please sign in to comment.