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
c58b2f22
Commit
c58b2f22
authored
Jul 01, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Materials in the execute buffer are handles.
parent
c0cc4d42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
executebuffer.c
dlls/ddraw/executebuffer.c
+9
-4
No files found.
dlls/ddraw/executebuffer.c
View file @
c58b2f22
...
...
@@ -246,12 +246,17 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
if
(
!
ci
->
u1
.
dlstLightStateType
&&
(
ci
->
u1
.
dlstLightStateType
>
D3DLIGHTSTATE_COLORVERTEX
))
ERR
(
"Unexpected Light State Type
\n
"
);
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_MATERIAL
/* 1 */
)
{
IDirect3DMaterialImpl
*
mat
=
(
IDirect3DMaterialImpl
*
)
ci
->
u2
.
dwArg
[
0
];
DWORD
matHandle
=
ci
->
u2
.
dwArg
[
0
];
if
(
mat
!=
NULL
)
{
mat
->
activate
(
mat
);
}
else
{
if
(
!
matHandle
)
{
FIXME
(
" D3DLIGHTSTATE_MATERIAL called with NULL material !!!
\n
"
);
}
else
if
(
matHandle
>=
lpDevice
->
numHandles
)
{
WARN
(
"Material handle %d is invalid
\n
"
,
matHandle
);
}
else
if
(
lpDevice
->
Handles
[
matHandle
-
1
].
type
!=
DDrawHandle_Material
)
{
WARN
(
"Handle %d is not a material handle
\n
"
,
matHandle
);
}
else
{
IDirect3DMaterialImpl
*
mat
=
(
IDirect3DMaterialImpl
*
)
lpDevice
->
Handles
[
matHandle
-
1
].
ptr
;
mat
->
activate
(
mat
);
}
}
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_COLORMODEL
/* 3 */
)
{
...
...
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