Fixed RenderingManager.cpp forcing unload and reload of shader.

This commit is contained in:
brunoherbelin
2020-06-14 20:20:46 +02:00
parent fb1c9e5f96
commit 709d379bc7

View File

@@ -666,6 +666,7 @@ void RenderingWindow::draw(FrameBuffer *fb)
scale = glm::vec3(renderingAspectRatio / windowAspectRatio, 1.f, 1.f);
// draw
ShadingProgram::enduse();
glBindTexture(GL_TEXTURE_2D, fb->texture());
// surface->shader()->color.a = 0.4f; // TODO alpha blending ?
surface->draw(glm::scale(glm::identity<glm::mat4>(), scale), projection);