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
6c820bbc
Commit
6c820bbc
authored
Apr 03, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't touch GL sRGB decode state when not supported.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
parent
6a9a8067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
view.c
dlls/wined3d/view.c
+2
-1
No files found.
dlls/wined3d/view.c
View file @
6c820bbc
...
...
@@ -1306,7 +1306,8 @@ void wined3d_shader_resource_view_gl_generate_mipmap(struct wined3d_shader_resou
if
(
gl_info
->
supported
[
ARB_SAMPLER_OBJECTS
])
GL_EXTCALL
(
glBindSampler
(
context_gl
->
active_texture
,
0
));
gl_tex
=
wined3d_texture_gl_get_gl_texture
(
texture_gl
,
srgb
);
if
(
context_gl
->
c
.
d3d_info
->
wined3d_creation_flags
&
WINED3D_SRGB_READ_WRITE_CONTROL
)
if
(
context_gl
->
c
.
d3d_info
->
wined3d_creation_flags
&
WINED3D_SRGB_READ_WRITE_CONTROL
&&
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
])
{
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
texture_gl
->
target
,
GL_TEXTURE_SRGB_DECODE_EXT
,
GL_SKIP_DECODE_EXT
);
...
...
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