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
1da773ff
Commit
1da773ff
authored
Feb 28, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge device_unload_resource() and reset_unload_resources().
parent
14050e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
device.c
dlls/wined3d/device.c
+6
-10
No files found.
dlls/wined3d/device.c
View file @
1da773ff
...
...
@@ -2102,11 +2102,14 @@ err_out:
return
hr
;
}
static
HRESULT
WINAPI
device_unload_resource
(
IWineD3DResource
*
resource
,
void
*
ctx
)
static
HRESULT
WINAPI
device_unload_resource
(
IWineD3DResource
*
resource
,
void
*
data
)
{
TRACE
(
"Unloading resource %p.
\n
"
,
resource
);
IWineD3DResource_UnLoad
(
resource
);
IWineD3DResource_Release
(
resource
);
return
WINED3D_OK
;
return
S_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Uninit3D
(
IWineD3DDevice
*
iface
,
...
...
@@ -6180,13 +6183,6 @@ static HRESULT updateSurfaceDesc(IWineD3DSurfaceImpl *surface, const WINED3DPRES
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
reset_unload_resources
(
IWineD3DResource
*
resource
,
void
*
data
)
{
TRACE
(
"Unloading resource %p
\n
"
,
resource
);
IWineD3DResource_UnLoad
(
resource
);
IWineD3DResource_Release
(
resource
);
return
S_OK
;
}
static
BOOL
is_display_mode_supported
(
IWineD3DDeviceImpl
*
This
,
const
WINED3DPRESENT_PARAMETERS
*
pp
)
{
UINT
i
,
count
;
...
...
@@ -6223,7 +6219,7 @@ static void delete_opengl_contexts(IWineD3DDeviceImpl *device, IWineD3DSwapChain
context
=
context_acquire
(
device
,
NULL
);
gl_info
=
context
->
gl_info
;
IWineD3DDevice_EnumResources
((
IWineD3DDevice
*
)
device
,
reset_unload_resources
,
NULL
);
IWineD3DDevice_EnumResources
((
IWineD3DDevice
*
)
device
,
device_unload_resource
,
NULL
);
LIST_FOR_EACH_ENTRY
(
shader
,
&
device
->
shaders
,
IWineD3DBaseShaderImpl
,
baseShader
.
shader_list_entry
)
{
device
->
shader_backend
->
shader_destroy
(
shader
);
...
...
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