Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
252c4adb
Commit
252c4adb
authored
Mar 02, 2006
by
Aric Cyr
Committed by
Alexandre Julliard
Mar 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
dlls/wined3d/utils.c
+3
-3
No files found.
dlls/wined3d/utils.c
View file @
252c4adb
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment