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
44ab3d70
Commit
44ab3d70
authored
May 17, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle depth/stencil surfaces in IWineD3DSurfaceImpl_LoadLocation().
parent
bdc85b69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
device.c
dlls/wined3d/device.c
+1
-0
drawprim.c
dlls/wined3d/drawprim.c
+3
-0
surface.c
dlls/wined3d/surface.c
+16
-0
No files found.
dlls/wined3d/device.c
View file @
44ab3d70
...
...
@@ -4483,6 +4483,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
if
(
location
==
SFLAG_DS_ONSCREEN
&&
depth_stencil
!=
This
->
onscreen_depth_stencil
)
device_switch_onscreen_ds
(
This
,
context
,
depth_stencil
);
prepare_ds_clear
(
depth_stencil
,
context
,
location
,
&
draw_rect
,
Count
,
clear_rect
);
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
depth_stencil
,
SFLAG_INDRAWABLE
,
TRUE
);
glDepthMask
(
GL_TRUE
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_ZWRITEENABLE
));
...
...
dlls/wined3d/drawprim.c
View file @
44ab3d70
...
...
@@ -634,9 +634,12 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT StartIdx, UINT
surface_load_ds_location
(
This
->
depth_stencil
,
context
,
location
);
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_ZWRITEENABLE
])
{
surface_modify_ds_location
(
This
->
depth_stencil
,
location
,
This
->
depth_stencil
->
ds_current_size
.
cx
,
This
->
depth_stencil
->
ds_current_size
.
cy
);
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
This
->
depth_stencil
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
}
...
...
dlls/wined3d/surface.c
View file @
44ab3d70
...
...
@@ -4390,6 +4390,22 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadLocation(IWineD3DSurface *iface, D
BOOL
drawable_read_ok
=
TRUE
;
BOOL
in_fbo
=
FALSE
;
if
(
This
->
resource
.
usage
&
WINED3DUSAGE_DEPTHSTENCIL
)
{
if
(
flag
==
SFLAG_INTEXTURE
)
{
struct
wined3d_context
*
context
=
context_acquire
(
device
,
NULL
);
surface_load_ds_location
(
This
,
context
,
SFLAG_DS_OFFSCREEN
);
context_release
(
context
);
return
WINED3D_OK
;
}
else
{
FIXME
(
"Unimplemented location %#x for depth/stencil buffers.
\n
"
,
flag
);
return
WINED3DERR_INVALIDCALL
;
}
}
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
surface_is_offscreen
(
This
))
...
...
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