浏览代码

Merge pull request #398 from blackberry/master

Fixes for BlackBerry Simulator
Sean Paul Taylor 13 年之前
父节点
当前提交
66e1251721
共有 1 个文件被更改,包括 5 次插入1 次删除
  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 rc = 0;
     int screenFormat = SCREEN_FORMAT_RGBA8888;
     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 screenSwapInterval = WINDOW_VSYNC ? 1 : 0;
     int screenTransparency = SCREEN_TRANSPARENCY_NONE;
     int screenTransparency = SCREEN_TRANSPARENCY_NONE;
     int angle = atoi(getenv("ORIENTATION"));
     int angle = atoi(getenv("ORIENTATION"));