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
9866125e
Commit
9866125e
authored
Mar 25, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just mark the color write mask dirty in IWineD3DDeviceImpl_ClearSurface().
parent
9eb5ba43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
device.c
dlls/wined3d/device.c
+7
-19
No files found.
dlls/wined3d/device.c
View file @
9866125e
...
@@ -4417,16 +4417,12 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
...
@@ -4417,16 +4417,12 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
glMask
=
glMask
|
GL_DEPTH_BUFFER_BIT
;
glMask
=
glMask
|
GL_DEPTH_BUFFER_BIT
;
}
}
if
(
Flags
&
WINED3DCLEAR_TARGET
)
{
if
(
Flags
&
WINED3DCLEAR_TARGET
)
TRACE
(
"Clearing screen with glClear to color %x
\n
"
,
Color
);
{
glClearColor
(
D3DCOLOR_R
(
Color
),
D3DCOLOR_G
(
Color
),
D3DCOLOR_B
(
Color
),
D3DCOLOR_A
(
Color
));
checkGLcall
(
"glClearColor"
);
/* Clear ALL colors! */
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
glClearColor
(
D3DCOLOR_R
(
Color
),
D3DCOLOR_G
(
Color
),
D3DCOLOR_B
(
Color
),
D3DCOLOR_A
(
Color
));
checkGLcall
(
"glClearColor"
);
glMask
=
glMask
|
GL_COLOR_BUFFER_BIT
;
glMask
=
glMask
|
GL_COLOR_BUFFER_BIT
;
}
}
...
@@ -4486,16 +4482,8 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
...
@@ -4486,16 +4482,8 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
}
}
}
}
if
(
Flags
&
WINED3DCLEAR_TARGET
)
{
if
(
Flags
&
WINED3DCLEAR_TARGET
)
DWORD
mask
=
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
];
{
glColorMask
(
mask
&
WINED3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
mask
&
WINED3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
mask
&
WINED3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
mask
&
WINED3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
/* Dirtify the target surface for now. If the surface is locked regularly, and an up to date sysmem copy exists,
* it is most likely more efficient to perform a clear on the sysmem copy too instead of downloading it
*/
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
TRUE
);
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
if
(
Flags
&
WINED3DCLEAR_ZBUFFER
)
{
if
(
Flags
&
WINED3DCLEAR_ZBUFFER
)
{
...
...
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