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
16f7c242
Commit
16f7c242
authored
Oct 09, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take sRGB_decode into account in texture_srgb_mode.
parent
70251170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
texture.c
dlls/wined3d/texture.c
+3
-1
No files found.
dlls/wined3d/texture.c
View file @
16f7c242
...
...
@@ -658,6 +658,7 @@ static HRESULT texture2d_bind(struct wined3d_texture *texture,
static
BOOL
texture_srgb_mode
(
const
struct
wined3d_texture
*
texture
,
enum
WINED3DSRGB
srgb
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
texture
->
resource
.
device
->
adapter
->
gl_info
;
switch
(
srgb
)
{
case
SRGB_RGB
:
...
...
@@ -667,7 +668,8 @@ static BOOL texture_srgb_mode(const struct wined3d_texture *texture, enum WINED3
return
TRUE
;
default:
return
texture
->
flags
&
WINED3D_TEXTURE_IS_SRGB
;
return
!
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
]
&&
texture
->
flags
&
WINED3D_TEXTURE_IS_SRGB
;
}
}
...
...
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