nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: Clean UTF-8 string update
[nit.git]
/
lib
/
glesv2
/
examples
/
opengles2_hello_triangle.nit
diff --git
a/lib/glesv2/examples/opengles2_hello_triangle.nit
b/lib/glesv2/examples/opengles2_hello_triangle.nit
index
48d49ab
..
3a1e1c5
100644
(file)
--- a/
lib/glesv2/examples/opengles2_hello_triangle.nit
+++ b/
lib/glesv2/examples/opengles2_hello_triangle.nit
@@
-168,7
+168,7
@@
for i in [0..10000[ do
gl.clear((new GLBuffer).color)
program.use
vertex_array.enable
- vertex_array.draw_arrays_triangles
+ glDrawArrays(new GLDrawMode.triangles, 0, 3)
egl_display.swap_buffers(surface)
end