Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4d462ade
Commit
4d462ade
authored
May 18, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Use more common formats for surfaces in DXTn tests.
parent
0da94d49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
surface.c
dlls/d3dx9_36/tests/surface.c
+6
-6
No files found.
dlls/d3dx9_36/tests/surface.c
View file @
4d462ade
...
...
@@ -853,7 +853,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
}
/* DXT1, DXT2, DXT3, DXT4, DXT5 */
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_
R8G8B8
,
D3DPOOL_SYSTEMMEM
,
&
surf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_A8
R8G8B8
,
D3DPOOL_SYSTEMMEM
,
&
surf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create R8G8B8 surface, hr %#x.
\n
"
,
hr
);
else
...
...
@@ -861,7 +861,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
hr
=
D3DXLoadSurfaceFromFileInMemory
(
surf
,
NULL
,
NULL
,
dds_24bit
,
sizeof
(
dds_24bit
),
NULL
,
D3DX_FILTER_NONE
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to load surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_DXT2
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_DXT2
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create DXT2 surface, hr %#x.
\n
"
,
hr
);
else
...
...
@@ -871,7 +871,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
check_release
((
IUnknown
*
)
newsurf
,
0
);
}
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_DXT3
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_DXT3
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create DXT3 surface, hr %#x.
\n
"
,
hr
);
else
...
...
@@ -881,7 +881,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
check_release
((
IUnknown
*
)
newsurf
,
0
);
}
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_DXT4
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_DXT4
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create DXT4 surface, hr %#x.
\n
"
,
hr
);
else
...
...
@@ -891,7 +891,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
check_release
((
IUnknown
*
)
newsurf
,
0
);
}
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_DXT5
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_DXT5
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create DXT5 surface, hr %#x.
\n
"
,
hr
);
else
...
...
@@ -901,7 +901,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
check_release
((
IUnknown
*
)
newsurf
,
0
);
}
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
2
,
2
,
D3DFMT_DXT1
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_DXT1
,
D3DPOOL_SYSTEMMEM
,
&
newsurf
,
NULL
);
if
(
FAILED
(
hr
))
skip
(
"Failed to create DXT1 surface, hr %#x.
\n
"
,
hr
);
else
...
...
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