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
449be2d3
Commit
449be2d3
authored
Mar 06, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement ID3D10Effect::GetDevice().
parent
9da1d844
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
d3d10_main.c
dlls/d3d10/d3d10_main.c
+2
-0
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-0
effect.c
dlls/d3d10/effect.c
+8
-2
No files found.
dlls/d3d10/d3d10_main.c
View file @
449be2d3
...
...
@@ -224,6 +224,8 @@ HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT fl
object
->
vtbl
=
&
d3d10_effect_vtbl
;
object
->
refcount
=
1
;
ID3D10Device_AddRef
(
device
);
object
->
device
=
device
;
hr
=
d3d10_effect_parse
(
object
,
data
,
data_size
);
if
(
FAILED
(
hr
))
...
...
dlls/d3d10/d3d10_private.h
View file @
449be2d3
...
...
@@ -80,6 +80,7 @@ struct d3d10_effect
const
struct
ID3D10EffectVtbl
*
vtbl
;
LONG
refcount
;
ID3D10Device
*
device
;
DWORD
technique_count
;
DWORD
index_offset
;
DWORD
blendstate_count
;
...
...
dlls/d3d10/effect.c
View file @
449be2d3
...
...
@@ -589,6 +589,7 @@ static ULONG STDMETHODCALLTYPE d3d10_effect_Release(ID3D10Effect *iface)
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
techniques
);
}
ID3D10Device_Release
(
This
->
device
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -613,9 +614,14 @@ static BOOL STDMETHODCALLTYPE d3d10_effect_IsPool(ID3D10Effect *iface)
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_GetDevice
(
ID3D10Effect
*
iface
,
ID3D10Device
**
device
)
{
FIXME
(
"iface %p, device %p stub!
\n
"
,
iface
,
device
)
;
struct
d3d10_effect
*
This
=
(
struct
d3d10_effect
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, device %p
\n
"
,
iface
,
device
);
ID3D10Device_AddRef
(
This
->
device
);
*
device
=
This
->
device
;
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_GetDesc
(
ID3D10Effect
*
iface
,
D3D10_EFFECT_DESC
*
desc
)
...
...
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