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
a9604de2
Commit
a9604de2
authored
Jul 15, 2023
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Don't create a vertex shader in test_desktop_window() when unsupported.
parent
b4692e94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
visual.c
dlls/d3d9/tests/visual.c
+13
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
a9604de2
...
@@ -26423,6 +26423,7 @@ static void test_desktop_window(void)
...
@@ -26423,6 +26423,7 @@ static void test_desktop_window(void)
unsigned
int
color
;
unsigned
int
color
;
IDirect3D9
*
d3d
;
IDirect3D9
*
d3d
;
ULONG
refcount
;
ULONG
refcount
;
D3DCAPS9
caps
;
HWND
window
;
HWND
window
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -26475,9 +26476,18 @@ static void test_desktop_window(void)
...
@@ -26475,9 +26476,18 @@ static void test_desktop_window(void)
device
=
create_device
(
d3d
,
NULL
,
NULL
,
TRUE
);
device
=
create_device
(
d3d
,
NULL
,
NULL
,
TRUE
);
ok
(
device
!=
NULL
,
"Failed to create a D3D device
\n
"
);
ok
(
device
!=
NULL
,
"Failed to create a D3D device
\n
"
);
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
simple_vs
,
&
shader
);
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create vertex shader, hr %#lx.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get device caps, hr %#lx.
\n
"
,
hr
);
IDirect3DVertexShader9_Release
(
shader
);
if
(
caps
.
VertexShaderVersion
>=
D3DVS_VERSION
(
1
,
1
))
{
hr
=
IDirect3DDevice9_CreateVertexShader
(
device
,
simple_vs
,
&
shader
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create vertex shader, hr %#lx.
\n
"
,
hr
);
IDirect3DVertexShader9_Release
(
shader
);
}
else
{
skip
(
"Vertex shaders not supported.
\n
"
);
}
IDirect3DDevice9_Release
(
device
);
IDirect3DDevice9_Release
(
device
);
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