Browse Source

Merge pull request #109 from blackberry/master

Fixes for BlackBerry Simulator
Sean Paul Taylor 13 years ago
parent
commit
d027ada342
1 changed files with 5 additions and 1 deletions
  1. 5 1
      gameplay/src/PlatformQNX.cpp

+ 5 - 1
gameplay/src/PlatformQNX.cpp

@@ -509,7 +509,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"));