Przeglądaj źródła

UI: Switch from RGBA to BGRA swap chain format

DirectX team member claims BGRA might have flip optimization benefits.
jpark37 6 lat temu
rodzic
commit
a1f1e1080e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      UI/qt-display.cpp

+ 1 - 1
UI/qt-display.cpp

@@ -86,7 +86,7 @@ void OBSQTDisplay::CreateDisplay()
 	gs_init_data info = {};
 	info.cx = size.width();
 	info.cy = size.height();
-	info.format = GS_RGBA;
+	info.format = GS_BGRA;
 	info.zsformat = GS_ZS_NONE;
 
 	QTToGSWindow(winId(), info.window);