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
7dd4f439
Commit
7dd4f439
authored
Apr 01, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: The texture interfaces can't be queried from version 7 surfaces.
parent
8481625f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
surface.c
dlls/ddraw/surface.c
+10
-10
No files found.
dlls/ddraw/surface.c
View file @
7dd4f439
...
...
@@ -222,21 +222,21 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
return
E_NOINTERFACE
;
}
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture2
,
riid
)
||
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
))
if
(
This
->
version
!=
7
)
{
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
))
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture2
,
riid
))
{
*
obj
=
&
This
->
IDirect3DTexture_iface
;
TRACE
(
" returning Direct3DTexture interface at %p.
\n
"
,
*
obj
);
IDirect3DTexture2_AddRef
(
&
This
->
IDirect3DTexture2_iface
);
*
obj
=
&
This
->
IDirect3DTexture2_iface
;
return
S_OK
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
))
{
*
obj
=
&
This
->
IDirect3DTexture2_iface
;
TRACE
(
" returning Direct3DTexture2 interface at %p.
\n
"
,
*
obj
);
IDirect3DTexture2_AddRef
(
&
This
->
IDirect3DTexture_iface
);
*
obj
=
&
This
->
IDirect3DTexture_iface
;
return
S_OK
;
}
IUnknown_AddRef
(
(
IUnknown
*
)
*
obj
);
return
S_OK
;
}
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
riid
));
...
...
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