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
aeade16d
Commit
aeade16d
authored
Jun 19, 2013
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Skip unbound_sampler_test if cube or volume textures aren't supported.
parent
5ffabcdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
visual.c
dlls/d3d9/tests/visual.c
+9
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
aeade16d
...
@@ -12763,6 +12763,7 @@ static void unbound_sampler_test(IDirect3DDevice9 *device)
...
@@ -12763,6 +12763,7 @@ static void unbound_sampler_test(IDirect3DDevice9 *device)
IDirect3DPixelShader9
*
ps
,
*
ps_cube
,
*
ps_volume
;
IDirect3DPixelShader9
*
ps
,
*
ps_cube
,
*
ps_volume
;
IDirect3DSurface9
*
rt
,
*
old_rt
;
IDirect3DSurface9
*
rt
,
*
old_rt
;
DWORD
color
;
DWORD
color
;
D3DCAPS9
caps
;
static
const
DWORD
ps_code
[]
=
static
const
DWORD
ps_code
[]
=
{
{
...
@@ -12805,6 +12806,14 @@ static void unbound_sampler_test(IDirect3DDevice9 *device)
...
@@ -12805,6 +12806,14 @@ static void unbound_sampler_test(IDirect3DDevice9 *device)
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
1
.
0
f
,
1
.
0
f
}
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
1
.
0
f
,
1
.
0
f
}
};
};
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"GetDeviceCaps failed, hr %#x.
\n
"
,
hr
);
if
(
!
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP
)
||
!
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_VOLUMEMAP
))
{
skip
(
"No cube / volume textures support, skipping the unbound sampler test.
\n
"
);
return
;
}
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_SetTextureStage failed, %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_SetTextureStage failed, %#x.
\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