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
834b599e
Commit
834b599e
authored
Jan 16, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass an IWineD3DResourceImpl pointer to device_resource_released().
parent
852ac57d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
device.c
dlls/wined3d/device.c
+4
-4
resource.c
dlls/wined3d/resource.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
834b599e
...
@@ -6602,14 +6602,14 @@ static void device_resource_remove(struct IWineD3DDeviceImpl *device, struct IWi
...
@@ -6602,14 +6602,14 @@ static void device_resource_remove(struct IWineD3DDeviceImpl *device, struct IWi
list_remove
(
&
resource
->
resource
.
resource_list_entry
);
list_remove
(
&
resource
->
resource
.
resource_list_entry
);
}
}
void
device_resource_released
(
IWineD3DDeviceImpl
*
device
,
IWineD3DResource
*
resource
)
void
device_resource_released
(
struct
IWineD3DDeviceImpl
*
device
,
struct
IWineD3DResourceImpl
*
resource
)
{
{
WINED3DRESOURCETYPE
type
=
IWineD3DResource_GetType
(
resource
);
WINED3DRESOURCETYPE
type
=
IWineD3DResource_GetType
(
(
IWineD3DResource
*
)
resource
);
unsigned
int
i
;
unsigned
int
i
;
TRACE
(
"device %p, resource %p, type %s.
\n
"
,
device
,
resource
,
debug_d3dresourcetype
(
type
));
TRACE
(
"device %p, resource %p, type %s.
\n
"
,
device
,
resource
,
debug_d3dresourcetype
(
type
));
context_resource_released
(
device
,
resource
,
type
);
context_resource_released
(
device
,
(
IWineD3DResource
*
)
resource
,
type
);
switch
(
type
)
switch
(
type
)
{
{
...
@@ -6696,7 +6696,7 @@ void device_resource_released(IWineD3DDeviceImpl *device, IWineD3DResource *reso
...
@@ -6696,7 +6696,7 @@ void device_resource_released(IWineD3DDeviceImpl *device, IWineD3DResource *reso
}
}
/* Remove the resource from the resourceStore */
/* Remove the resource from the resourceStore */
device_resource_remove
(
device
,
(
IWineD3DResourceImpl
*
)
resource
);
device_resource_remove
(
device
,
resource
);
TRACE
(
"Resource released.
\n
"
);
TRACE
(
"Resource released.
\n
"
);
}
}
...
...
dlls/wined3d/resource.c
View file @
834b599e
...
@@ -120,7 +120,7 @@ void resource_cleanup(struct IWineD3DResourceImpl *resource)
...
@@ -120,7 +120,7 @@ void resource_cleanup(struct IWineD3DResourceImpl *resource)
resource
->
resource
.
heapMemory
=
0
;
resource
->
resource
.
heapMemory
=
0
;
if
(
resource
->
resource
.
device
)
if
(
resource
->
resource
.
device
)
device_resource_released
(
resource
->
resource
.
device
,
(
IWineD3DResource
*
)
resource
);
device_resource_released
(
resource
->
resource
.
device
,
resource
);
}
}
void
resource_unload
(
IWineD3DResourceImpl
*
resource
)
void
resource_unload
(
IWineD3DResourceImpl
*
resource
)
...
...
dlls/wined3d/wined3d_private.h
View file @
834b599e
...
@@ -1784,7 +1784,7 @@ void device_preload_textures(IWineD3DDeviceImpl *device) DECLSPEC_HIDDEN;
...
@@ -1784,7 +1784,7 @@ void device_preload_textures(IWineD3DDeviceImpl *device) DECLSPEC_HIDDEN;
LRESULT
device_process_message
(
IWineD3DDeviceImpl
*
device
,
HWND
window
,
BOOL
unicode
,
LRESULT
device_process_message
(
IWineD3DDeviceImpl
*
device
,
HWND
window
,
BOOL
unicode
,
UINT
message
,
WPARAM
wparam
,
LPARAM
lparam
,
WNDPROC
proc
)
DECLSPEC_HIDDEN
;
UINT
message
,
WPARAM
wparam
,
LPARAM
lparam
,
WNDPROC
proc
)
DECLSPEC_HIDDEN
;
void
device_resource_add
(
struct
IWineD3DDeviceImpl
*
device
,
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
void
device_resource_add
(
struct
IWineD3DDeviceImpl
*
device
,
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
void
device_resource_released
(
IWineD3DDeviceImpl
*
This
,
IWineD3DResource
*
resource
)
DECLSPEC_HIDDEN
;
void
device_resource_released
(
struct
IWineD3DDeviceImpl
*
device
,
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
void
device_stream_info_from_declaration
(
IWineD3DDeviceImpl
*
This
,
void
device_stream_info_from_declaration
(
IWineD3DDeviceImpl
*
This
,
BOOL
use_vshader
,
struct
wined3d_stream_info
*
stream_info
,
BOOL
*
fixup
)
DECLSPEC_HIDDEN
;
BOOL
use_vshader
,
struct
wined3d_stream_info
*
stream_info
,
BOOL
*
fixup
)
DECLSPEC_HIDDEN
;
void
device_switch_onscreen_ds
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d_context
*
context
,
void
device_switch_onscreen_ds
(
IWineD3DDeviceImpl
*
device
,
struct
wined3d_context
*
context
,
...
...
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