summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-30 15:49:14 +0200
committerSven Gothel <[email protected]>2011-09-30 15:49:14 +0200
commit68236f5193d5da825f1ca3163350a14bf5d7c051 (patch)
tree2700620d6a2cdc2e8e17238bbedfbd5e0eb2e661
parentd055b6cc48974a53a416533f85c191e20c0a885e (diff)
EGL: eglSwapBuffers() show failure in DEBUG mode
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java b/src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java
index 4359f2ac3..7d5e0448d 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java
@@ -57,7 +57,12 @@ public class EGLOnscreenDrawable extends EGLDrawable {
}
protected void swapBuffersImpl() {
- EGL.eglSwapBuffers(eglDisplay, eglSurface);
+ if(!EGL.eglSwapBuffers(eglDisplay, eglSurface)) {
+ if(DEBUG) {
+ System.err.println("eglSwapBuffers failed:");
+ Thread.dumpStack();
+ }
+ }
}
}