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
b0f2a49f
Commit
b0f2a49f
authored
Jul 20, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Jul 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXBaseEffect::SetTexture().
parent
d457956c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
effect.c
dlls/d3dx9_36/effect.c
+22
-2
No files found.
dlls/d3dx9_36/effect.c
View file @
b0f2a49f
...
...
@@ -1988,10 +1988,30 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetString(ID3DXBaseEffect *iface, D3DX
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_SetTexture
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
parameter
,
LPDIRECT3DBASETEXTURE9
texture
)
{
struct
ID3DXBaseEffectImpl
*
This
=
impl_from_ID3DXBaseEffect
(
iface
);
struct
d3dx_parameter
*
param
=
is_valid_parameter
(
This
,
parameter
);
FIXME
(
"iface %p, parameter %p, texture %p stub
\n
"
,
This
,
parameter
,
texture
);
TRACE
(
"iface %p, parameter %p, texture %p
\n
"
,
This
,
parameter
,
texture
);
return
E_NOTIMPL
;
if
(
!
param
)
param
=
get_parameter_by_name
(
This
,
NULL
,
parameter
);
if
(
texture
&&
param
&&
!
param
->
element_count
&&
(
param
->
type
==
D3DXPT_TEXTURE
||
param
->
type
==
D3DXPT_TEXTURE1D
||
param
->
type
==
D3DXPT_TEXTURE2D
||
param
->
type
==
D3DXPT_TEXTURE3D
||
param
->
type
==
D3DXPT_TEXTURECUBE
))
{
LPDIRECT3DBASETEXTURE9
oltexture
=
*
(
LPDIRECT3DBASETEXTURE9
*
)
param
->
data
;
if
(
texture
)
IDirect3DBaseTexture9_AddRef
(
texture
);
if
(
oltexture
)
IDirect3DBaseTexture9_Release
(
oltexture
);
*
(
LPDIRECT3DBASETEXTURE9
*
)
param
->
data
=
texture
;
return
D3D_OK
;
}
WARN
(
"Invalid argument specified
\n
"
);
return
D3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_GetTexture
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
parameter
,
LPDIRECT3DBASETEXTURE9
*
texture
)
...
...
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