diff -r 6977c4417aac prism-es2-native/src/GLContext.c --- a/prism-es2-native/src/GLContext.c Fri Sep 14 13:28:55 2012 -0400 +++ b/prism-es2-native/src/GLContext.c Tue Sep 18 15:04:17 2012 -0400 @@ -45,7 +45,7 @@ } #endif -#ifdef UNIX +#if defined UNIX && ! defined IS_EGLFB if (ctxInfo->glxExtensionStr != NULL) { free(ctxInfo->glxExtensionStr); } diff -r 6977c4417aac prism-es2-native/src/GLPixelFormat.c --- a/prism-es2-native/src/GLPixelFormat.c Fri Sep 14 13:28:55 2012 -0400 +++ b/prism-es2-native/src/GLPixelFormat.c Tue Sep 18 15:04:17 2012 -0400 @@ -29,7 +29,7 @@ } #endif -#ifdef UNIX +#if defined UNIX && ! defined IS_EGLFB if (pfInfo->display != NULL) { if (pfInfo->dummyWin != None) { XDestroyWindow(pfInfo->display, pfInfo->dummyWin);