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
eddbdbef
Commit
eddbdbef
authored
Mar 23, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Test executebuffer triangle instruction with zero count.
parent
3d2bdf52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
d3d.c
dlls/ddraw/tests/d3d.c
+24
-0
No files found.
dlls/ddraw/tests/d3d.c
View file @
eddbdbef
...
...
@@ -1088,6 +1088,30 @@ static void Direct3D1Test(void)
hr
=
IDirect3DDevice_Execute
(
Direct3DDevice1
,
ExecuteBuffer
,
Viewport
,
D3DEXECUTE_CLIPPED
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice_Execute returned %08x
\n
"
,
hr
);
/* Test rendering 0 triangles */
memset
(
&
desc
,
0
,
sizeof
(
desc
));
desc
.
dwSize
=
sizeof
(
desc
);
hr
=
IDirect3DExecuteBuffer_Lock
(
ExecuteBuffer
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Lock failed: %08x
\n
"
,
hr
);
memset
(
desc
.
lpData
,
0
,
128
);
instr
=
desc
.
lpData
;
idx
=
0
;
instr
->
bOpcode
=
D3DOP_TRIANGLE
;
instr
->
bSize
=
sizeof
(
D3DOP_TRIANGLE
);
instr
->
wCount
=
0
;
instr
=
((
D3DINSTRUCTION
*
)(
instr
))
+
1
;
instr
->
bOpcode
=
D3DOP_EXIT
;
instr
->
bSize
=
0
;
instr
->
wCount
=
0
;
hr
=
IDirect3DExecuteBuffer_Unlock
(
ExecuteBuffer
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Unlock failed: %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice_Execute
(
Direct3DDevice1
,
ExecuteBuffer
,
Viewport
,
D3DEXECUTE_CLIPPED
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice_Execute returned %08x
\n
"
,
hr
);
memset
(
&
transformdata
,
0
,
sizeof
(
transformdata
));
transformdata
.
dwSize
=
sizeof
(
transformdata
);
transformdata
.
lpIn
=
(
void
*
)
testverts
;
...
...
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