gamnit: check for more errors
[nit.git] / lib / gamnit / egl.nit
index 59a0aa3..b0f756f 100644 (file)
@@ -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