mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Fix rendering error
This commit is contained in:
@@ -33,17 +33,13 @@ 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)
|
|
||||||
object.draw
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
handleGlError
|
|
||||||
if object.visible
|
|
||||||
draw_mesh(object.model)
|
draw_mesh(object.model)
|
||||||
object.draw
|
object.draw
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
handleGlError
|
||||||
|
draw_mesh(object.model)
|
||||||
|
object.draw
|
||||||
end
|
end
|
||||||
handleGlError
|
handleGlError
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user