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
5e0f5416
Commit
5e0f5416
authored
May 29, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove ResourceReleased() from the public device interface.
parent
d37472f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
16 deletions
+8
-16
device.c
dlls/wined3d/device.c
+6
-9
resource.c
dlls/wined3d/resource.c
+1
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
wined3d.idl
include/wine/wined3d.idl
+0
-3
No files found.
dlls/wined3d/device.c
View file @
5e0f5416
...
...
@@ -7786,23 +7786,21 @@ static void IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3DResour
list_add_head
(
&
This
->
resources
,
&
((
IWineD3DResourceImpl
*
)
resource
)
->
resource
.
resource_list_entry
);
}
static
void
IWineD3DDeviceImpl_RemoveResource
(
IWineD3DDevice
*
iface
,
IWineD3DResource
*
resource
){
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
void
device_resource_remove
(
IWineD3DDeviceImpl
*
This
,
IWineD3DResource
*
resource
)
{
TRACE
(
"(%p) : Removing resource %p
\n
"
,
This
,
resource
);
list_remove
(
&
((
IWineD3DResourceImpl
*
)
resource
)
->
resource
.
resource_list_entry
);
}
static
void
WINAPI
IWineD3DDeviceImpl_ResourceReleased
(
IWineD3DDevice
*
iface
,
IWineD3DResource
*
resource
){
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
void
device_resource_released
(
IWineD3DDeviceImpl
*
This
,
IWineD3DResource
*
resource
)
{
WINED3DRESOURCETYPE
type
=
IWineD3DResource_GetType
(
resource
);
int
counter
;
TRACE
(
"(%p) : resource %p
\n
"
,
This
,
resource
);
context_resource_released
(
iface
,
resource
,
type
);
context_resource_released
(
(
IWineD3DDevice
*
)
This
,
resource
,
type
);
switch
(
type
)
{
/* TODO: check front and back buffers, rendertargets etc.. possibly swapchains? */
...
...
@@ -7917,7 +7915,7 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
/* Remove the resource from the resourceStore */
IWineD3DDeviceImpl_RemoveResource
(
iface
,
resource
);
device_resource_remove
(
This
,
resource
);
TRACE
(
"Resource released
\n
"
);
...
...
@@ -8089,7 +8087,6 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_UpdateSurface
,
IWineD3DDeviceImpl_GetFrontBufferData
,
/*** object tracking ***/
IWineD3DDeviceImpl_ResourceReleased
,
IWineD3DDeviceImpl_EnumResources
};
...
...
dlls/wined3d/resource.c
View file @
5e0f5416
...
...
@@ -96,10 +96,7 @@ void resource_cleanup(IWineD3DResource *iface)
This
->
resource
.
allocatedMemory
=
0
;
This
->
resource
.
heapMemory
=
0
;
if
(
This
->
resource
.
wineD3DDevice
!=
NULL
)
{
IWineD3DDevice_ResourceReleased
((
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
,
iface
);
}
/* NOTE: this is not really an error for system memory resources */
return
;
if
(
This
->
resource
.
wineD3DDevice
)
device_resource_released
(
This
->
resource
.
wineD3DDevice
,
iface
);
}
HRESULT
resource_get_device
(
IWineD3DResource
*
iface
,
IWineD3DDevice
**
ppDevice
)
...
...
dlls/wined3d/wined3d_private.h
View file @
5e0f5416
...
...
@@ -1578,6 +1578,7 @@ struct IWineD3DDeviceImpl
extern
const
IWineD3DDeviceVtbl
IWineD3DDevice_Vtbl
;
void
device_resource_released
(
IWineD3DDeviceImpl
*
This
,
IWineD3DResource
*
resource
);
void
device_stream_info_from_declaration
(
IWineD3DDeviceImpl
*
This
,
BOOL
use_vshader
,
struct
wined3d_stream_info
*
stream_info
,
BOOL
*
fixup
);
void
device_stream_info_from_strided
(
IWineD3DDeviceImpl
*
This
,
...
...
include/wine/wined3d.idl
View file @
5e0f5416
...
...
@@ -3468,9 +3468,6 @@ interface IWineD3DDevice : IWineD3DBase
[
in
]
UINT
swapchain_idx
,
[
in
]
IWineD3DSurface
*
dst_surface
)
;
void
ResourceReleased
(
[
in
]
IWineD3DResource
*
resource
)
;
HRESULT
EnumResources
(
[
in
]
D3DCB_ENUMRESOURCES
callback
,
[
in
]
void
*
data
...
...
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