Sfoglia il codice sorgente

UI: Make RGB output use RGB, not BGR

Noticed that the red and blue channels were inverted when testing.
jp9000 10 anni fa
parent
commit
abdc2b61ce
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      obs/window-basic-main.cpp

+ 1 - 1
obs/window-basic-main.cpp

@@ -1523,7 +1523,7 @@ static inline enum video_format GetVideoFormatFromName(const char *name)
 		return VIDEO_FORMAT_UYVY;
 		return VIDEO_FORMAT_UYVY;
 #endif
 #endif
 	else
 	else
-		return VIDEO_FORMAT_BGRA;
+		return VIDEO_FORMAT_RGBA;
 }
 }
 
 
 int OBSBasic::ResetVideo()
 int OBSBasic::ResetVideo()