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
483d9550
Commit
483d9550
authored
Apr 14, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use finer grained colorkey state invalidation.
parent
382fa588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
cs.c
dlls/wined3d/cs.c
+10
-3
No files found.
dlls/wined3d/cs.c
View file @
483d9550
...
...
@@ -913,6 +913,13 @@ static void wined3d_cs_exec_set_color_key(struct wined3d_cs *cs, const void *dat
break
;
case
WINED3D_CKEY_SRC_BLT
:
if
(
texture
==
cs
->
state
.
textures
[
0
])
{
device_invalidate_state
(
cs
->
device
,
STATE_COLOR_KEY
);
if
(
!
(
texture
->
async
.
color_key_flags
&
WINED3D_CKEY_SRC_BLT
))
device_invalidate_state
(
cs
->
device
,
STATE_RENDER
(
WINED3D_RS_COLORKEYENABLE
));
}
texture
->
async
.
src_blt_color_key
=
op
->
color_key
;
texture
->
async
.
color_key_flags
|=
WINED3D_CKEY_SRC_BLT
;
break
;
...
...
@@ -936,6 +943,9 @@ static void wined3d_cs_exec_set_color_key(struct wined3d_cs *cs, const void *dat
break
;
case
WINED3D_CKEY_SRC_BLT
:
if
(
texture
==
cs
->
state
.
textures
[
0
]
&&
texture
->
async
.
color_key_flags
&
WINED3D_CKEY_SRC_BLT
)
device_invalidate_state
(
cs
->
device
,
STATE_RENDER
(
WINED3D_RS_COLORKEYENABLE
));
texture
->
async
.
color_key_flags
&=
~
WINED3D_CKEY_SRC_BLT
;
break
;
...
...
@@ -944,9 +954,6 @@ static void wined3d_cs_exec_set_color_key(struct wined3d_cs *cs, const void *dat
break
;
}
}
if
(
texture
->
resource
.
bind_count
&&
op
->
flags
&
WINED3D_CKEY_SRC_BLT
)
device_invalidate_state
(
cs
->
device
,
STATE_RENDER
(
WINED3D_RS_COLORKEYENABLE
));
}
void
wined3d_cs_emit_set_color_key
(
struct
wined3d_cs
*
cs
,
struct
wined3d_texture
*
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