From 68236f5193d5da825f1ca3163350a14bf5d7c051 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 30 Sep 2011 15:49:14 +0200 Subject: EGL: eglSwapBuffers() show failure in DEBUG mode --- src/jogl/classes/jogamp/opengl/egl/EGLOnscreenDrawable.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp') 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(); + } + } } } -- cgit v1.2.3