Fixed invalid OpenGL state.

This commit is contained in:
Jonathas Costa
2019-06-04 12:12:05 -04:00
parent 0a68b06823
commit 4b27cf7ac5
+1 -1
View File
@@ -353,7 +353,7 @@ void RenderableSphere::render(const RenderData& data, RendererTasks&) {
glm::mat4(data.camera.combinedViewMatrix() * modelTransform);
_shader->setUniform(_uniformCache.modelViewProjection, modelViewProjection);
glm::mat4 modelViewRotation = glm::mat3(
glm::mat3 modelViewRotation = glm::mat3(
glm::dmat3(data.camera.viewRotationMatrix()) * modelRotation
);
_shader->setUniform(_uniformCache.modelViewRotation, modelViewRotation);