From 0c8661be5f4f7b374248e381bea9650e0f8e7be9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 Nov 2009 10:31:03 +0000 Subject: [PATCH] Added EGL error checking and changed the egl context configuration settings --- src/osgViewer/GraphicsWindowX11.cpp | 60 ++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 2c812a401..dd04c8105 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -38,6 +38,23 @@ using namespace osgViewer; +#ifdef OSG_USE_EGL +bool checkEGLError(const char* str) +{ + EGLint err = eglGetError(); + if (err != EGL_SUCCESS) + { + osg::notify(osg::WARN)<<"Warning: "<