Commit ca166e89 authored by Sylvain Thery's avatar Sylvain Thery

frame mapniplator minor change

parent 84dbb3d7
......@@ -156,8 +156,8 @@ float FrameManipulator::getSize()
void FrameManipulator::draw()
{
glm::mat4 store = Utils::GLSLShader::currentTransfo();
Utils::GLSLShader::currentTransfo() *= transfoRenderFrame();
Utils::GLSLShader::pushTransfo();
Utils::GLSLShader::applyTransfo(transfoRenderFrame());
Utils::GLSLShader::updateCurrentMatrices();
glPushAttrib(GL_LINE_BIT);
......@@ -299,7 +299,7 @@ void FrameManipulator::draw()
m_shader->disableVertexAttribs();
glPopAttrib();
Utils::GLSLShader::currentTransfo() = store;
Utils::GLSLShader::popTransfo();
Utils::GLSLShader::updateCurrentMatrices();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment