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
35bdc004
Commit
35bdc004
authored
Jun 02, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the surface location to SFLAG_INSYSMEM for depth stencils on Reset.
parent
3687207a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
device.c
dlls/wined3d/device.c
+6
-2
surface.c
dlls/wined3d/surface.c
+5
-1
No files found.
dlls/wined3d/device.c
View file @
35bdc004
...
...
@@ -7048,8 +7048,12 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
surface
->
resource
.
allocatedMemory
=
NULL
;
surface
->
resource
.
heapMemory
=
NULL
;
surface
->
resource
.
size
=
IWineD3DSurface_GetPitch
((
IWineD3DSurface
*
)
surface
)
*
surface
->
pow2Width
;
/* INDRAWABLE is a sane place for implicit targets / depth stencil after the reset */
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
surface
,
SFLAG_INDRAWABLE
,
TRUE
);
/* INDRAWABLE is a sane place for implicit targets after the reset, INSYSMEM is more appropriate for depth stencils. */
if
(
surface
->
resource
.
usage
&
WINED3DUSAGE_DEPTHSTENCIL
)
{
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
surface
,
SFLAG_INSYSMEM
,
TRUE
);
}
else
{
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
surface
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
static
HRESULT
WINAPI
reset_unload_resources
(
IWineD3DResource
*
resource
,
void
*
data
)
{
...
...
dlls/wined3d/surface.c
View file @
35bdc004
...
...
@@ -572,7 +572,11 @@ static void WINAPI IWineD3DSurfaceImpl_UnLoad(IWineD3DSurface *iface) {
* uninitialized drawable. That's pointless and we'd have to allocate the texture /
* sysmem copy here.
*/
IWineD3DSurface_ModifyLocation
(
iface
,
SFLAG_INDRAWABLE
,
TRUE
);
if
(
This
->
resource
.
usage
&
WINED3DUSAGE_DEPTHSTENCIL
)
{
IWineD3DSurface_ModifyLocation
(
iface
,
SFLAG_INSYSMEM
,
TRUE
);
}
else
{
IWineD3DSurface_ModifyLocation
(
iface
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
else
{
/* Load the surface into system memory */
IWineD3DSurface_LoadLocation
(
iface
,
SFLAG_INSYSMEM
,
NULL
);
...
...
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