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
82a4373c
Commit
82a4373c
authored
Feb 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check if formats are supported as render target in srgbwrite_format_test().
Floating point formats in particular may not be supported everywhere.
parent
74cf35d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
visual.c
dlls/d3d9/tests/visual.c
+8
-5
No files found.
dlls/d3d9/tests/visual.c
View file @
82a4373c
...
...
@@ -11447,14 +11447,17 @@ static void srgbwrite_format_test(IDirect3DDevice9 *device)
for
(
i
=
0
;
i
<
(
sizeof
(
formats
)
/
sizeof
(
*
formats
));
i
++
)
{
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
8
,
8
,
1
,
D3DUSAGE_RENDERTARGET
,
formats
[
i
].
fmt
,
D3DPOOL_DEFAULT
,
&
texture
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"CreateTexture failed, hr %#x.
\n
"
,
hr
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
D3DUSAGE_RENDERTARGET
,
D3DRTYPE_TEXTURE
,
formats
[
i
].
fmt
)))
{
trace
(
"Tex create failed
\n
"
);
skip
(
"Format %s not supported as render target, skipping test.
\n
"
,
formats
[
i
].
name
);
continue
;
}
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
8
,
8
,
1
,
D3DUSAGE_RENDERTARGET
,
formats
[
i
].
fmt
,
D3DPOOL_DEFAULT
,
&
texture
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"CreateTexture failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0x00ff0000
,
0
.
0
f
,
0
);
ok
(
SUCCEEDED
(
hr
),
"Clear failed, hr %#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