Sfoglia il codice sorgente

Fixed gameplay so that it works on the PlayBook simulator.

Darryl Gough 13 anni fa
parent
commit
8093820375
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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"));