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
0188f96d
Commit
0188f96d
authored
Jun 09, 2009
by
Stefan Doesinger
Committed by
Alexandre Julliard
Jun 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement EvictManagedResources.
parent
b2f09fd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
device.c
dlls/wined3d/device.c
+12
-5
No files found.
dlls/wined3d/device.c
View file @
0188f96d
...
...
@@ -6856,14 +6856,21 @@ static HRESULT WINAPI IWineD3DDeviceImpl_TestCooperativeLevel(IWineD3DDevice*
return
WINED3DERR_DRIVERINTERNALERROR
;
}
static
HRESULT
WINAPI
evict_managed_resource
(
IWineD3DResource
*
resource
,
void
*
data
)
{
TRACE
(
"checking resource %p for eviction
\n
"
,
resource
);
if
(((
IWineD3DResourceImpl
*
)
resource
)
->
resource
.
pool
==
WINED3DPOOL_MANAGED
)
{
TRACE
(
"Evicting %p
\n
"
,
resource
);
IWineD3DResource_UnLoad
(
resource
);
}
IWineD3DResource_Release
(
resource
);
return
S_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EvictManagedResources
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** FIXME: Resource tracking needs to be done,
* The closes we can do to this is set the priorities of all managed textures low
* and then reset them.
***********************************************************/
FIXME
(
"(%p) : stub
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
IWineD3DDevice_EnumResources
(
iface
,
evict_managed_resource
,
NULL
);
return
WINED3D_OK
;
}
...
...
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