diff options
author | Sven Gothel <[email protected]> | 2011-09-30 15:49:14 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-30 15:49:14 +0200 |
commit | 68236f5193d5da825f1ca3163350a14bf5d7c051 (patch) | |
tree | 2700620d6a2cdc2e8e17238bbedfbd5e0eb2e661 /src/jogl/classes/jogamp/opengl/egl | |
parent | d055b6cc48974a53a416533f85c191e20c0a885e (diff) |
EGL: eglSwapBuffers() show failure in DEBUG mode
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java | 7 |
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(); + } + } } } |