Skip to content

Commit

Permalink
#5912: Remove unneeded glMatrixMode calls
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 11, 2022
1 parent 5b74a8c commit ffcba59
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions radiantcore/rendersystem/backend/OpenGLShaderPass.cpp
Expand Up @@ -515,12 +515,6 @@ void OpenGLShaderPass::submitSurfaces(OpenGLState& current,
const VolumeTest& view,
std::size_t time)
{
// Reset the texture matrix
glMatrixMode(GL_TEXTURE);
glLoadMatrixd(Matrix4::getIdentity());

glMatrixMode(GL_MODELVIEW);

// Apply our state to the current state object
applyState(current, flagsMask, viewer, time, nullptr);

Expand All @@ -533,12 +527,6 @@ void OpenGLShaderPass::submitRenderables(OpenGLState& current,
const VolumeTest& view,
std::size_t time)
{
// Reset the texture matrix
glMatrixMode(GL_TEXTURE);
glLoadMatrixd(Matrix4::getIdentity());

glMatrixMode(GL_MODELVIEW);

// Apply our state to the current state object
applyState(current, flagsMask, viewer, time, nullptr);

Expand Down

0 comments on commit ffcba59

Please sign in to comment.