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
1b561e81
Commit
1b561e81
authored
Jan 10, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the map binding for RGB<->sRGB loads.
parent
5c1df19b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
surface.c
dlls/wined3d/surface.c
+4
-4
No files found.
dlls/wined3d/surface.c
View file @
1b561e81
...
...
@@ -5003,20 +5003,20 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
if
(
srgb
)
{
if
((
surface
->
flags
&
(
SFLAG_INTEXTURE
|
SFLAG_INSYSMEM
))
==
SFLAG_INTEXTURE
)
if
((
surface
->
flags
&
(
SFLAG_INTEXTURE
|
surface
->
map_binding
))
==
SFLAG_INTEXTURE
)
{
/* Performance warning... */
FIXME
(
"Downloading RGB surface %p to reload it as sRGB.
\n
"
,
surface
);
surface_load_location
(
surface
,
SFLAG_INSYSMEM
);
surface_load_location
(
surface
,
surface
->
map_binding
);
}
}
else
{
if
((
surface
->
flags
&
(
SFLAG_INSRGBTEX
|
SFLAG_INSYSMEM
))
==
SFLAG_INSRGBTEX
)
if
((
surface
->
flags
&
(
SFLAG_INSRGBTEX
|
surface
->
map_binding
))
==
SFLAG_INSRGBTEX
)
{
/* Performance warning... */
FIXME
(
"Downloading sRGB surface %p to reload it as RGB.
\n
"
,
surface
);
surface_load_location
(
surface
,
SFLAG_INSYSMEM
);
surface_load_location
(
surface
,
surface
->
map_binding
);
}
}
...
...
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