nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: check for more errors
[nit.git]
/
lib
/
gamnit
/
egl.nit
diff --git
a/lib/gamnit/egl.nit
b/lib/gamnit/egl.nit
index
59a0aa3
..
b0f756f
100644
(file)
--- a/
lib/gamnit/egl.nit
+++ b/
lib/gamnit/egl.nit
@@
-110,6
+110,10
@@
redef class GamnitDisplay
redef fun flip
do
+ assert glGetError == gl_NO_ERROR
+
+ assert egl_display.is_valid
+
egl_display.swap_buffers(window_surface)
end
end