Commit 252c4adb authored by Aric Cyr's avatar Aric Cyr Committed by Alexandre Julliard

wined3d: Reverse GL_BGR to GL_RGB for the D3D RGB formats.

This fixes texture colours in many D3D games (verified with Age Of Mythology).
parent 9a9981ba
......@@ -1703,9 +1703,9 @@ GLenum D3DFmt2GLFmt(IWineD3DDeviceImpl* This, D3DFORMAT fmt) {
case WINED3DFMT_Q8W8V8U8: retVal = GL_RGBA; break;
case WINED3DFMT_Q16W16V16U16: retVal = GL_COLOR_INDEX; break;
/* color buffer */
case WINED3DFMT_R3G3B2: retVal = GL_BGR; break;
case WINED3DFMT_R5G6B5: retVal = GL_BGR; break;
case WINED3DFMT_R8G8B8: retVal = GL_BGR; break;
case WINED3DFMT_R3G3B2: retVal = GL_RGB; break;
case WINED3DFMT_R5G6B5: retVal = GL_RGB; break;
case WINED3DFMT_R8G8B8: retVal = GL_RGB; break;
case WINED3DFMT_A1R5G5B5: retVal = GL_BGRA; break;
case WINED3DFMT_X1R5G5B5: retVal = GL_BGRA; break;
case WINED3DFMT_A4R4G4B4: retVal = GL_BGRA; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment