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
e8419403
Commit
e8419403
authored
Feb 15, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add the WINED3DSPD_IUNKNOWN flag and use it.
parent
176a2a19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
resource.c
dlls/wined3d/resource.c
+4
-4
wined3d_types.h
include/wine/wined3d_types.h
+3
-0
No files found.
dlls/wined3d/resource.c
View file @
e8419403
...
...
@@ -115,7 +115,7 @@ HRESULT WINAPI IWineD3DResourceImpl_SetPrivateData(IWineD3DResource *iface, REFG
#if 0
(*data)->uniquenessValue = This->uniquenessValue;
#endif
if
(
Flags
&
D3DSPD_IUNKNOWN
)
{
if
(
Flags
&
WINE
D3DSPD_IUNKNOWN
)
{
(
*
data
)
->
ptr
.
object
=
(
LPUNKNOWN
)
pData
;
(
*
data
)
->
size
=
sizeof
(
LPUNKNOWN
);
IUnknown_AddRef
((
*
data
)
->
ptr
.
object
);
...
...
@@ -157,7 +157,7 @@ HRESULT WINAPI IWineD3DResourceImpl_GetPrivateData(IWineD3DResource *iface, REFG
#if 0 /* This may not be right. */
if (((*data)->flags & D3DSPD_VOLATILE)
if (((*data)->flags &
WINE
D3DSPD_VOLATILE)
&& (*data)->uniquenessValue != This->uniquenessValue)
return DDERR_EXPIRED;
#endif
...
...
@@ -166,7 +166,7 @@ HRESULT WINAPI IWineD3DResourceImpl_GetPrivateData(IWineD3DResource *iface, REFG
return
WINED3DERR_MOREDATA
;
}
if
((
*
data
)
->
flags
&
D3DSPD_IUNKNOWN
)
{
if
((
*
data
)
->
flags
&
WINE
D3DSPD_IUNKNOWN
)
{
*
(
LPUNKNOWN
*
)
pData
=
(
*
data
)
->
ptr
.
object
;
IUnknown_AddRef
((
*
data
)
->
ptr
.
object
);
}
...
...
@@ -187,7 +187,7 @@ HRESULT WINAPI IWineD3DResourceImpl_FreePrivateData(IWineD3DResource *iface, REF
*
data
=
(
*
data
)
->
next
;
if
((
*
data
)
->
flags
&
D3DSPD_IUNKNOWN
)
if
((
*
data
)
->
flags
&
WINE
D3DSPD_IUNKNOWN
)
{
if
((
*
data
)
->
ptr
.
object
!=
NULL
)
IUnknown_Release
((
*
data
)
->
ptr
.
object
);
...
...
include/wine/wined3d_types.h
View file @
e8419403
...
...
@@ -1562,4 +1562,7 @@ typedef enum _WINED3DSURFTYPE {
#define WINED3DSTREAMSOURCE_INDEXEDDATA (1 << 30)
#define WINED3DSTREAMSOURCE_INSTANCEDATA (2 << 30)
/* SetPrivateData flags */
#define WINED3DSPD_IUNKNOWN 0x00000001
#endif
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