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
38c213ec
Commit
38c213ec
authored
Mar 11, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Ignore clears when the framebuffer setup is broken.
parent
2d441f52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
device.c
dlls/wined3d/device.c
+17
-4
No files found.
dlls/wined3d/device.c
View file @
38c213ec
...
...
@@ -4780,11 +4780,24 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD rect
TRACE
(
"iface %p, rect_count %u, rects %p, flags %#x, color 0x%08x, depth %.8e, stencil %u.
\n
"
,
iface
,
rect_count
,
rects
,
flags
,
color
,
depth
,
stencil
);
if
(
flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
)
&&
!
device
->
depth_stencil
)
if
(
flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
))
{
WARN
(
"Clearing depth and/or stencil without a depth stencil buffer attached, returning WINED3DERR_INVALIDCALL
\n
"
);
/* TODO: What about depth stencil buffers without stencil bits? */
return
WINED3DERR_INVALIDCALL
;
IWineD3DSurfaceImpl
*
ds
=
device
->
depth_stencil
;
if
(
!
ds
)
{
WARN
(
"Clearing depth and/or stencil without a depth stencil buffer attached, returning WINED3DERR_INVALIDCALL
\n
"
);
/* TODO: What about depth stencil buffers without stencil bits? */
return
WINED3DERR_INVALIDCALL
;
}
else
if
(
flags
&
WINED3DCLEAR_TARGET
)
{
if
(
ds
->
resource
.
width
<
device
->
render_targets
[
0
]
->
resource
.
width
||
ds
->
resource
.
height
<
device
->
render_targets
[
0
]
->
resource
.
height
)
{
WARN
(
"Silently ignoring depth and target clear with mismatching sizes
\n
"
);
return
WINED3D_OK
;
}
}
}
device_get_draw_rect
(
device
,
&
draw_rect
);
...
...
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