Browse Source

Mesh: Reset state at the end of lovr.draw;

bjorn 5 years ago
parent
commit
2073e9e29c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/Mesh/main.lua

+ 3 - 0
examples/Mesh/main.lua

@@ -193,4 +193,7 @@ function lovr.draw(eye)
   lovr.graphics.scale(1/gridSize)
   mesh4:draw(lovr.math.mat4(), gridSizeCubed)
   lovr.graphics.pop()
+
+  lovr.graphics.setColor(1,1,1)
+  lovr.graphics.setShader()
 end