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
e92d7cbf
Commit
e92d7cbf
authored
Oct 15, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement GetRenderState for D3DRENDERSTATE_TEXTUREHANDLE.
parent
1c86290b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
4 deletions
+41
-4
device.c
dlls/ddraw/device.c
+41
-4
No files found.
dlls/ddraw/device.c
View file @
e92d7cbf
...
...
@@ -2094,16 +2094,53 @@ IDirect3DDeviceImpl_7_GetRenderState(IDirect3DDevice7 *iface,
DWORD
*
Value
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice7
,
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%08x,%p): Relay
\n
"
,
This
,
RenderStateType
,
Value
);
if
(
!
Value
)
return
DDERR_INVALIDPARAMS
;
/* FIXME: Unhandled: D3DRENDERSTATE_STIPPLEPATTERN00 - 31 */
switch
(
RenderStateType
)
{
case
D3DRENDERSTATE_TEXTUREHANDLE
:
{
/* This state is wrapped to SetTexture in SetRenderState, so
* it has to be wrapped to GetTexture here
*/
IWineD3DBaseTexture
*
tex
=
NULL
;
*
Value
=
0
;
hr
=
IWineD3DDevice_GetTexture
(
This
->
wineD3DDevice
,
0
,
&
tex
);
if
(
hr
==
WINED3D_OK
&&
tex
)
{
IDirectDrawSurface7
*
parent
=
NULL
;
hr
=
IWineD3DBaseTexture_GetParent
(
tex
,
(
IUnknown
**
)
&
parent
);
if
(
parent
)
{
/* The parent of the texture is the IDirectDrawSurface7 interface
* of the ddraw surface
*/
IDirectDrawSurfaceImpl
*
texImpl
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
parent
);
*
Value
=
texImpl
->
Handle
;
IDirectDrawSurface7_Release
(
parent
);
}
IWineD3DBaseTexture_Release
(
tex
);
}
return
hr
;
}
return
IWineD3DDevice_GetRenderState
(
This
->
wineD3DDevice
,
RenderStateType
,
Value
);
default:
/* FIXME: Unhandled: D3DRENDERSTATE_STIPPLEPATTERN00 - 31 */
return
IWineD3DDevice_GetRenderState
(
This
->
wineD3DDevice
,
RenderStateType
,
Value
);
}
}
static
HRESULT
WINAPI
...
...
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