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
ca5b8e11
Commit
ca5b8e11
authored
May 13, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
May 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Parse effect textures.
parent
ae2c6a16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
effect.c
dlls/d3dx9_36/effect.c
+23
-2
No files found.
dlls/d3dx9_36/effect.c
View file @
ca5b8e11
...
...
@@ -319,12 +319,17 @@ static void free_parameter(D3DXHANDLE handle, BOOL element, BOOL child)
if
(
param
->
class
==
D3DXPC_OBJECT
&&
!
param
->
element_count
)
{
switch
(
param
->
type
)
switch
(
param
->
type
)
{
case
D3DXPT_STRING
:
HeapFree
(
GetProcessHeap
(),
0
,
*
(
LPSTR
*
)
param
->
data
);
break
;
case
D3DXPT_TEXTURE
:
case
D3DXPT_TEXTURE1D
:
case
D3DXPT_TEXTURE2D
:
case
D3DXPT_TEXTURE3D
:
case
D3DXPT_TEXTURECUBE
:
case
D3DXPT_PIXELSHADER
:
case
D3DXPT_VERTEXSHADER
:
if
(
*
(
IUnknown
**
)
param
->
data
)
IUnknown_Release
(
*
(
IUnknown
**
)
param
->
data
);
...
...
@@ -1207,7 +1212,10 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetValue(ID3DXBaseEffect *iface, D3DXH
if
(
data
&&
param
&&
param
->
data
&&
param
->
bytes
<=
bytes
)
{
if
(
param
->
type
==
D3DXPT_VERTEXSHADER
||
param
->
type
==
D3DXPT_PIXELSHADER
)
if
(
param
->
type
==
D3DXPT_VERTEXSHADER
||
param
->
type
==
D3DXPT_PIXELSHADER
||
param
->
type
==
D3DXPT_TEXTURE
||
param
->
type
==
D3DXPT_TEXTURE1D
||
param
->
type
==
D3DXPT_TEXTURE2D
||
param
->
type
==
D3DXPT_TEXTURE3D
||
param
->
type
==
D3DXPT_TEXTURECUBE
)
{
UINT
i
;
...
...
@@ -3358,6 +3366,11 @@ static HRESULT d3dx9_parse_value(struct d3dx_parameter *param, void *value, cons
switch
(
param
->
type
)
{
case
D3DXPT_STRING
:
case
D3DXPT_TEXTURE
:
case
D3DXPT_TEXTURE1D
:
case
D3DXPT_TEXTURE2D
:
case
D3DXPT_TEXTURE3D
:
case
D3DXPT_TEXTURECUBE
:
case
D3DXPT_PIXELSHADER
:
case
D3DXPT_VERTEXSHADER
:
read_dword
(
ptr
,
&
id
);
...
...
@@ -3579,6 +3592,14 @@ static HRESULT d3dx9_parse_effect_typedef(struct d3dx_parameter *param, const ch
param
->
bytes
=
sizeof
(
LPDIRECT3DVERTEXSHADER9
);
break
;
case
D3DXPT_TEXTURE
:
case
D3DXPT_TEXTURE1D
:
case
D3DXPT_TEXTURE2D
:
case
D3DXPT_TEXTURE3D
:
case
D3DXPT_TEXTURECUBE
:
param
->
bytes
=
sizeof
(
LPDIRECT3DBASETEXTURE9
);
break
;
default:
FIXME
(
"Unhandled type %s
\n
"
,
debug_d3dxparameter_type
(
param
->
type
));
break
;
...
...
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