handle BGRA8; nVidia cards prefer this format

This commit is contained in:
Glenn Maynard
2007-03-22 05:30:19 +00:00
parent 0cb0394ad1
commit bf16705d1e
4 changed files with 17 additions and 0 deletions
+12
View File
@@ -73,6 +73,13 @@ static RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[NUM_PixelFormat] = {
0x00FF0000,
0x0000FF00,
0x000000FF }
}, {
/* B8G8R8A8 */
32,
{ 0x0000FF00,
0x00FF0000,
0xFF000000,
0x000000FF }
}, {
/* R4G4B4A4 */
16,
@@ -149,6 +156,11 @@ struct GLPixFmtInfo_t {
GL_RGBA8,
GL_RGBA,
GL_UNSIGNED_BYTE,
}, {
/* R8G8B8A8 */
GL_RGBA8,
GL_BGRA,
GL_UNSIGNED_BYTE,
}, {
/* B4G4R4A4 */
GL_RGBA4,