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
97d64396
Commit
97d64396
authored
Apr 24, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Check textures for srgb writing, not surfaces.
parent
9b259357
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
visual.c
dlls/d3d9/tests/visual.c
+7
-1
No files found.
dlls/d3d9/tests/visual.c
View file @
97d64396
...
...
@@ -6552,9 +6552,15 @@ static void fog_srgbwrite_test(IDirect3DDevice9 *device)
DWORD
color
;
IDirect3DDevice9_GetDirect3D
(
device
,
&
d3d
);
/* Ask for srgb writing on D3DRTYPE_TEXTURE. Some Windows drivers do not report it on surfaces.
* For some not entirely understood reasons D3DUSAGE_RENDERTARGET | D3DUSAGE_QUERY_SRGBWRITE
* passes on surfaces, while asking for SRGBWRITE alone fails. Textures advertize srgb writing
* alone as well, so use that since it is not the point of this test to show how CheckDeviceFormat
* works
*/
if
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
0
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
D3DUSAGE_RENDERTARGET
|
D3DUSAGE_QUERY_SRGBWRITE
,
D3DRTYPE_
SURFAC
E
,
D3DFMT_A8R8G8B8
)
!=
D3D_OK
)
{
D3DRTYPE_
TEXTUR
E
,
D3DFMT_A8R8G8B8
)
!=
D3D_OK
)
{
skip
(
"No SRGBWRITEENABLE support on D3DFMT_X8R8G8B8
\n
"
);
IDirect3D9_Release
(
d3d
);
return
;
...
...
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