Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ef65d2a6
Commit
ef65d2a6
authored
Oct 31, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Oct 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ColorWriteEnable should not impact clearing the screen.
parent
90f3057b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
device.c
dlls/d3d8/device.c
+11
-4
No files found.
dlls/d3d8/device.c
View file @
ef65d2a6
...
...
@@ -1382,6 +1382,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
((
Color
>>
0
)
&
0xFF
)
/
255
.
0
f
,
((
Color
>>
24
)
&
0xFF
)
/
255
.
0
f
);
checkGLcall
(
"glClearColor"
);
/* Clear ALL colors! */
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
glMask
=
glMask
|
GL_COLOR_BUFFER_BIT
;
}
...
...
@@ -1426,6 +1429,10 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
old_color_clear_value
[
1
],
old_color_clear_value
[
2
],
old_color_clear_value
[
3
]);
glColorMask
(
This
->
StateBlock
->
renderstate
[
D3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
This
->
StateBlock
->
renderstate
[
D3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
This
->
StateBlock
->
renderstate
[
D3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
This
->
StateBlock
->
renderstate
[
D3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
}
glDisable
(
GL_SCISSOR_TEST
);
...
...
@@ -2897,10 +2904,10 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
Value
&
D3DCOLORWRITEENABLE_GREEN
?
1
:
0
,
Value
&
D3DCOLORWRITEENABLE_BLUE
?
1
:
0
,
Value
&
D3DCOLORWRITEENABLE_ALPHA
?
1
:
0
);
glColorMask
(
Value
&
D3DCOLORWRITEENABLE_RED
,
Value
&
D3DCOLORWRITEENABLE_GREEN
,
Value
&
D3DCOLORWRITEENABLE_BLU
E
,
Value
&
D3DCOLORWRITEENABLE_ALPHA
);
glColorMask
(
Value
&
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
Value
&
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
Value
&
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALS
E
,
Value
&
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
checkGLcall
(
"glColorMask(...)"
);
break
;
...
...
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