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
50b67f98
Commit
50b67f98
authored
Jul 08, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Use a nonzero start index in test_sysmem_draw().
This uncovered a bug in the previous patch.
parent
fc0f0090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
visual.c
dlls/d3d8/tests/visual.c
+6
-6
No files found.
dlls/d3d8/tests/visual.c
View file @
50b67f98
...
@@ -10720,7 +10720,7 @@ static void test_sysmem_draw(void)
...
@@ -10720,7 +10720,7 @@ static void test_sysmem_draw(void)
0xff443322
,
0xff443322
,
0xff443322
,
0xff443322
,
};
};
static
const
short
indices
[]
=
{
0
,
1
,
2
,
3
};
static
const
short
indices
[]
=
{
5
,
6
,
7
,
8
,
0
,
1
,
2
,
3
};
window
=
create_window
();
window
=
create_window
();
ok
(
!!
window
,
"Failed to create a window.
\n
"
);
ok
(
!!
window
,
"Failed to create a window.
\n
"
);
...
@@ -10822,7 +10822,7 @@ static void test_sysmem_draw(void)
...
@@ -10822,7 +10822,7 @@ static void test_sysmem_draw(void)
hr
=
IDirect3DDevice8_BeginScene
(
device
);
hr
=
IDirect3DDevice8_BeginScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
0
,
2
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
4
,
2
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -10860,7 +10860,7 @@ static void test_sysmem_draw(void)
...
@@ -10860,7 +10860,7 @@ static void test_sysmem_draw(void)
hr
=
IDirect3DDevice8_BeginScene
(
device
);
hr
=
IDirect3DDevice8_BeginScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
0
,
2
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
4
,
2
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -10876,7 +10876,7 @@ static void test_sysmem_draw(void)
...
@@ -10876,7 +10876,7 @@ static void test_sysmem_draw(void)
hr
=
IDirect3DDevice8_BeginScene
(
device
);
hr
=
IDirect3DDevice8_BeginScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
5
,
0
,
2
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
5
,
4
,
2
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -10905,7 +10905,7 @@ static void test_sysmem_draw(void)
...
@@ -10905,7 +10905,7 @@ static void test_sysmem_draw(void)
hr
=
IDirect3DDevice8_BeginScene
(
device
);
hr
=
IDirect3DDevice8_BeginScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
0
,
2
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
4
,
2
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
@@ -10923,7 +10923,7 @@ static void test_sysmem_draw(void)
...
@@ -10923,7 +10923,7 @@ static void test_sysmem_draw(void)
hr
=
IDirect3DDevice8_BeginScene
(
device
);
hr
=
IDirect3DDevice8_BeginScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
0
,
2
);
hr
=
IDirect3DDevice8_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
0
,
4
,
4
,
2
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
hr
=
IDirect3DDevice8_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
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