* commit '9e0dba41bfa5f2029618958a7c2fcfa12e1723ad': opengles emulator: Call XInitThreads on Linux.
This commit is contained in:
@@ -26,6 +26,9 @@
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void printUsage(const char *progName)
|
static void printUsage(const char *progName)
|
||||||
{
|
{
|
||||||
@@ -105,6 +108,15 @@ int main(int argc, char *argv[])
|
|||||||
printf( "could not initialize Winsock\n" );
|
printf( "could not initialize Winsock\n" );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
// some OpenGL implementations may call X functions
|
||||||
|
// it is safer to synchronize all X calls made by all the
|
||||||
|
// rendering threads. (although the calls we do are locked
|
||||||
|
// in the FrameBuffer singleton object).
|
||||||
|
XInitThreads();
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// initialize Framebuffer
|
// initialize Framebuffer
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user