Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d1d8c814
Commit
d1d8c814
authored
Apr 13, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a separate function for rendertarget view initialization.
parent
242370b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
device.c
dlls/wined3d/device.c
+5
-5
view.c
dlls/wined3d/view.c
+11
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-1
No files found.
dlls/wined3d/device.c
View file @
d1d8c814
...
...
@@ -838,6 +838,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateRendertargetView(IWineD3DDevice *
{
struct
wined3d_rendertarget_view
*
object
;
TRACE
(
"iface %p, resource %p, parent %p, rendertarget_view %p.
\n
"
,
iface
,
resource
,
parent
,
rendertarget_view
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
...
...
@@ -845,12 +848,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateRendertargetView(IWineD3DDevice *
return
E_OUTOFMEMORY
;
}
object
->
vtbl
=
&
wined3d_rendertarget_view_vtbl
;
object
->
refcount
=
1
;
IWineD3DResource_AddRef
(
resource
);
object
->
resource
=
resource
;
object
->
parent
=
parent
;
wined3d_rendertarget_view_init
(
object
,
resource
,
parent
);
TRACE
(
"Created render target view %p.
\n
"
,
object
);
*
rendertarget_view
=
(
IWineD3DRendertargetView
*
)
object
;
return
WINED3D_OK
;
...
...
dlls/wined3d/view.c
View file @
d1d8c814
...
...
@@ -97,7 +97,7 @@ static HRESULT STDMETHODCALLTYPE rendertarget_view_GetResource(IWineD3DRendertar
return
WINED3D_OK
;
}
const
struct
IWineD3DRendertargetViewVtbl
wined3d_rendertarget_view_vtbl
=
static
const
struct
IWineD3DRendertargetViewVtbl
wined3d_rendertarget_view_vtbl
=
{
/* IUnknown methods */
rendertarget_view_QueryInterface
,
...
...
@@ -108,3 +108,13 @@ const struct IWineD3DRendertargetViewVtbl wined3d_rendertarget_view_vtbl =
/* IWineD3DRendertargetView methods */
rendertarget_view_GetResource
,
};
void
wined3d_rendertarget_view_init
(
struct
wined3d_rendertarget_view
*
view
,
IWineD3DResource
*
resource
,
IUnknown
*
parent
)
{
view
->
vtbl
=
&
wined3d_rendertarget_view_vtbl
;
view
->
refcount
=
1
;
IWineD3DResource_AddRef
(
resource
);
view
->
resource
=
resource
;
view
->
parent
=
parent
;
}
dlls/wined3d/wined3d_private.h
View file @
d1d8c814
...
...
@@ -2549,7 +2549,8 @@ struct wined3d_rendertarget_view
IUnknown
*
parent
;
};
extern
const
IWineD3DRendertargetViewVtbl
wined3d_rendertarget_view_vtbl
DECLSPEC_HIDDEN
;
void
wined3d_rendertarget_view_init
(
struct
wined3d_rendertarget_view
*
view
,
IWineD3DResource
*
resource
,
IUnknown
*
parent
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IWineD3DSwapChainImpl implementation structure (extends IUnknown)
...
...
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