nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: gamnit: new services and a lot of bug fixes and performance improvements
[nit.git]
/
lib
/
gamnit
/
depth
/
more_materials.nit
diff --git
a/lib/gamnit/depth/more_materials.nit
b/lib/gamnit/depth/more_materials.nit
index
96c1484
..
6674c04
100644
(file)
--- a/
lib/gamnit/depth/more_materials.nit
+++ b/
lib/gamnit/depth/more_materials.nit
@@
-96,6
+96,8
@@
class SmoothMaterial
else
glDrawElements(mesh.draw_mode, mesh.indices.length, gl_UNSIGNED_SHORT, mesh.indices_c.native_array)
end
+
+ assert glGetError == gl_NO_ERROR
end
private fun setup_lights(camera: Camera, program: BlinnPhongProgram)