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
6d6402af
Commit
6d6402af
authored
May 18, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
May 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the mostly unused SRGB_BOTH enum value.
parent
aba42d1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
context.c
dlls/wined3d/context.c
+1
-7
texture.c
dlls/wined3d/texture.c
+0
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/context.c
View file @
6d6402af
...
@@ -2341,14 +2341,8 @@ static void context_setup_target(struct wined3d_device *device,
...
@@ -2341,14 +2341,8 @@ static void context_setup_target(struct wined3d_device *device,
{
{
/* Read the back buffer of the old drawable into the destination texture. */
/* Read the back buffer of the old drawable into the destination texture. */
if
(
context
->
current_rt
->
texture_name_srgb
)
if
(
context
->
current_rt
->
texture_name_srgb
)
{
surface_internal_preload
(
context
->
current_rt
,
SRGB_SRGB
);
surface_internal_preload
(
context
->
current_rt
,
SRGB_BOTH
);
}
else
{
surface_internal_preload
(
context
->
current_rt
,
SRGB_RGB
);
surface_internal_preload
(
context
->
current_rt
,
SRGB_RGB
);
}
surface_modify_location
(
context
->
current_rt
,
SFLAG_INDRAWABLE
,
FALSE
);
surface_modify_location
(
context
->
current_rt
,
SFLAG_INDRAWABLE
,
FALSE
);
}
}
}
}
...
...
dlls/wined3d/texture.c
View file @
6d6402af
...
@@ -683,9 +683,6 @@ static void texture2d_preload(struct wined3d_texture *texture, enum WINED3DSRGB
...
@@ -683,9 +683,6 @@ static void texture2d_preload(struct wined3d_texture *texture, enum WINED3DSRGB
srgb_mode
=
FALSE
;
srgb_mode
=
FALSE
;
break
;
break
;
case
SRGB_BOTH
:
texture2d_preload
(
texture
,
SRGB_RGB
);
/* Fallthrough */
case
SRGB_SRGB
:
case
SRGB_SRGB
:
srgb_mode
=
TRUE
;
srgb_mode
=
TRUE
;
break
;
break
;
...
...
dlls/wined3d/wined3d_private.h
View file @
6d6402af
...
@@ -1876,7 +1876,6 @@ enum WINED3DSRGB
...
@@ -1876,7 +1876,6 @@ enum WINED3DSRGB
SRGB_ANY
=
0
,
/* Uses the cached value(e.g. external calls) */
SRGB_ANY
=
0
,
/* Uses the cached value(e.g. external calls) */
SRGB_RGB
=
1
,
/* Loads the rgb texture */
SRGB_RGB
=
1
,
/* Loads the rgb texture */
SRGB_SRGB
=
2
,
/* Loads the srgb texture */
SRGB_SRGB
=
2
,
/* Loads the srgb texture */
SRGB_BOTH
=
3
,
/* Loads both textures */
};
};
struct
gl_texture
struct
gl_texture
...
...
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