Ver código fonte

Move to single buffered rendering

Change-Id: I48d7688a3024c73e1de0fbefa15e3792d1444955
Donald Carr 9 anos atrás
pai
commit
3199820bd3
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      main.cpp

+ 1 - 0
main.cpp

@@ -27,6 +27,7 @@ int main(int argc, char *argv[])
     format.setRedBufferSize(8);
     format.setGreenBufferSize(8);
     format.setBlueBufferSize(8);
+    format.setSwapBehavior(QSurfaceFormat::SingleBuffer);
     QSurfaceFormat::setDefaultFormat(format);
 
     QGuiApplication app(argc, argv);