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
098cdf4a
Commit
098cdf4a
authored
Jan 17, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store an IWineD3DResourceImpl pointer in struct wined3d_rendertarget_view.
parent
e42e5247
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
view.c
dlls/wined3d/view.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/view.c
View file @
098cdf4a
...
...
@@ -65,7 +65,7 @@ static ULONG STDMETHODCALLTYPE rendertarget_view_Release(IWineD3DRendertargetVie
if
(
!
refcount
)
{
IWineD3DResource_Release
(
This
->
resource
);
IWineD3DResource_Release
(
(
IWineD3DResource
*
)
This
->
resource
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -88,8 +88,8 @@ static HRESULT STDMETHODCALLTYPE rendertarget_view_GetResource(IWineD3DRendertar
{
struct
wined3d_rendertarget_view
*
This
=
(
struct
wined3d_rendertarget_view
*
)
iface
;
IWineD3DResource_AddRef
(
This
->
resource
);
*
resource
=
This
->
resource
;
IWineD3DResource_AddRef
(
(
IWineD3DResource
*
)
This
->
resource
);
*
resource
=
(
IWineD3DResource
*
)
This
->
resource
;
return
WINED3D_OK
;
}
...
...
@@ -112,6 +112,6 @@ void wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *view,
view
->
vtbl
=
&
wined3d_rendertarget_view_vtbl
;
view
->
refcount
=
1
;
IWineD3DResource_AddRef
((
IWineD3DResource
*
)
resource
);
view
->
resource
=
(
IWineD3DResource
*
)
resource
;
view
->
resource
=
resource
;
view
->
parent
=
parent
;
}
dlls/wined3d/wined3d_private.h
View file @
098cdf4a
...
...
@@ -2569,7 +2569,7 @@ struct wined3d_rendertarget_view
const
struct
IWineD3DRendertargetViewVtbl
*
vtbl
;
LONG
refcount
;
IWineD3DResource
*
resource
;
struct
IWineD3DResourceImpl
*
resource
;
void
*
parent
;
};
...
...
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