Fix rendering error

This commit is contained in:
2019-08-10 10:15:22 -05:00
parent dcf71a9903
commit 80a6389af4

View File

@@ -33,18 +33,14 @@ class IMICFPS
glUniform3f(shader.attribute_location("SunLight"), 1.0, 1.0, 1.0) glUniform3f(shader.attribute_location("SunLight"), 1.0, 1.0, 1.0)
handleGlError handleGlError
if object.visible
draw_mesh(object.model) draw_mesh(object.model)
object.draw object.draw
end end
end
else else
handleGlError handleGlError
if object.visible
draw_mesh(object.model) draw_mesh(object.model)
object.draw object.draw
end end
end
handleGlError handleGlError
glPopMatrix glPopMatrix