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
9809a367
Commit
9809a367
authored
Mar 10, 2014
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Check if D3DFMT_X1R5G5B5 is supported.
parent
25084233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
texture.c
dlls/d3dx9_36/tests/texture.c
+7
-7
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
9809a367
...
...
@@ -304,14 +304,14 @@ static void test_D3DXCheckTextureRequirements(IDirect3DDevice9 *device)
if
(
SUCCEEDED
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
params
.
AdapterOrdinal
,
params
.
DeviceType
,
mode
.
Format
,
0
,
D3DRTYPE_TEXTURE
,
D3DFMT_R3G3B2
)))
expected
=
D3DFMT_R3G3B2
;
else
if
(
SUCCEEDED
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
params
.
AdapterOrdinal
,
params
.
DeviceType
,
mode
.
Format
,
0
,
D3DRTYPE_TEXTURE
,
D3DFMT_X4R4G4B4
)))
expected
=
D3DFMT_X4R4G4B4
;
else
if
(
SUCCEEDED
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
params
.
AdapterOrdinal
,
params
.
DeviceType
,
mode
.
Format
,
0
,
D3DRTYPE_TEXTURE
,
D3DFMT_X1R5G5B5
)))
expected
=
D3DFMT_X1R5G5B5
;
else
{
if
(
SUCCEEDED
(
IDirect3D9_CheckDeviceFormat
(
d3d
,
params
.
AdapterOrdinal
,
params
.
DeviceType
,
mode
.
Format
,
0
,
D3DRTYPE_TEXTURE
,
D3DFMT_X4R4G4B4
)))
expected
=
D3DFMT_X4R4G4B4
;
else
expected
=
D3DFMT_X1R5G5B5
;
}
expected
=
D3DFMT_R5G6B5
;
format
=
D3DFMT_R3G3B2
;
hr
=
D3DXCheckTextureRequirements
(
device
,
NULL
,
NULL
,
NULL
,
0
,
&
format
,
D3DPOOL_DEFAULT
);
...
...
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