Explorar o código

Merge pull request #398 from blackberry/master

Fixes for BlackBerry Simulator
Sean Paul Taylor %!s(int64=13) %!d(string=hai) anos
pai
achega
66e1251721
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      gameplay/src/PlatformQNX.cpp

+ 5 - 1
gameplay/src/PlatformQNX.cpp

@@ -508,7 +508,11 @@ Platform* Platform::create(Game* game)
 
     int rc = 0;
     int screenFormat = SCREEN_FORMAT_RGBA8888;
-    int screenUsage = SCREEN_USAGE_DISPLAY|SCREEN_USAGE_OPENGL_ES2;
+#if defined(__QNXNTO__) && defined(__X86__)
+    int screenUsage = SCREEN_USAGE_OPENGL_ES2;
+#else
+    int screenUsage = SCREEN_USAGE_DISPLAY|SCREEN_USAGE_OPENGL_ES2; // Physical device copy directly into physical display
+#endif
     int screenSwapInterval = WINDOW_VSYNC ? 1 : 0;
     int screenTransparency = SCREEN_TRANSPARENCY_NONE;
     int angle = atoi(getenv("ORIENTATION"));