=== modified file 'tools/unity_support_test.c'
--- tools/unity_support_test.c 2011-11-24 16:45:23 +0000
+++ tools/unity_support_test.c 2012-01-05 13:12:19 +0000
@@ -721,21 +721,26 @@
// Open a X11 connection and get the root window.
display = XOpenDisplay (display_name);
+#ifndef NUX_OPENGLES_20
// Before doing anything with GLX, check that it is supported on the system.
Bool glx_supported = False;
int dummy0, dummy1;
if (display)
glx_supported = glXQueryExtension(display, &dummy0, &dummy1);
-
- if (!display || !glx_supported) {
- if (!display)
- results.error = strdup ("unable to open display");
- else
- results.error = strdup ("GLX is not available on the system");
-
- // exit with 5, to tell "it's not an error we should cache"
- results.result = 5;
- }
+#endif
+
+ if (!display) {
+ results.error = strdup ("unable to open display");
+ // exit with 5, to tell "it's not an error we should cache"
+ results.result = 5;
+ }
+#ifndef NUX_OPENGLES_20
+ else if (!glx_supported) {
+ results.error = strdup ("GLX is not available on the system");
+ // exit with 5, to tell "it's not an error we should cache"
+ results.result = 5;
+ }
+#endif
else
{
screen = DefaultScreen (display);
The branch fails to build for gles2. Here is a fix:
=== modified file 'NuxGraphics/ GraphicsDisplay X11.cpp' GraphicsDisplay X11.cpp 2012-01-03 03:10:54 +0000 GraphicsDisplay X11.cpp 2012-01-05 12:58:20 +0000
--- NuxGraphics/
+++ NuxGraphics/
@@ -64,7 +64,9 @@
, m_X11Screen(0)
, m_ParentWindow(0)
, m_GLCtx(0)
+#ifndef NUX_OPENGLES_20
, glx_window_(0)
+#endif
, m_NumVideoModes(0)
, m_BorderPixel(0)
, _x11_major(0)
=== modified file 'tools/ unity_support_ test.c' support_ test.c 2011-11-24 16:45:23 +0000 support_ test.c 2012-01-05 13:12:19 +0000
--- tools/unity_
+++ tools/unity_
@@ -721,21 +721,26 @@
// Open a X11 connection and get the root window.
display = XOpenDisplay (display_name);
+#ifndef NUX_OPENGLES_20 on(display, &dummy0, &dummy1);
// Before doing anything with GLX, check that it is supported on the system.
Bool glx_supported = False;
int dummy0, dummy1;
if (display)
glx_supported = glXQueryExtensi
-
- if (!display || !glx_supported) {
- if (!display)
- results.error = strdup ("unable to open display");
- else
- results.error = strdup ("GLX is not available on the system");
-
- // exit with 5, to tell "it's not an error we should cache"
- results.result = 5;
- }
+#endif
+
+ if (!display) {
+ results.error = strdup ("unable to open display");
+ // exit with 5, to tell "it's not an error we should cache"
+ results.result = 5;
+ }
+#ifndef NUX_OPENGLES_20
+ else if (!glx_supported) {
+ results.error = strdup ("GLX is not available on the system");
+ // exit with 5, to tell "it's not an error we should cache"
+ results.result = 5;
+ }
+#endif
else
{
screen = DefaultScreen (display);