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
f2a4c6ee
Commit
f2a4c6ee
authored
Jul 14, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Aug 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: SetAutoGenFilterType tests.
parent
2ff209ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
texture.c
dlls/d3d9/tests/texture.c
+15
-0
No files found.
dlls/d3d9/tests/texture.c
View file @
f2a4c6ee
...
...
@@ -197,6 +197,21 @@ static void test_mipmap_gen(IDirect3DDevice9 *device)
D3DFMT_X8R8G8B8
,
D3DPOOL_MANAGED
,
&
texture
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_CreateTexture failed(%08x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
D3DTEXTUREFILTERTYPE
fltt
;
fltt
=
IDirect3DTexture9_GetAutoGenFilterType
(
texture
);
ok
(
D3DTEXF_LINEAR
==
fltt
/* || broken(D3DTEXF_POINT == fltt)*/
,
"GetAutoGenFilterType returned default %d
\n
"
,
fltt
);
hr
=
IDirect3DTexture9_SetAutoGenFilterType
(
texture
,
D3DTEXF_NONE
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"SetAutoGenFilterType D3DTEXF_NONE returned %08x
\n
"
,
hr
);
hr
=
IDirect3DTexture9_SetAutoGenFilterType
(
texture
,
D3DTEXF_ANISOTROPIC
);
ok
(
hr
==
D3D_OK
,
"SetAutoGenFilterType D3DTEXF_ANISOTROPIC returned %08x
\n
"
,
hr
);
fltt
=
IDirect3DTexture9_GetAutoGenFilterType
(
texture
);
ok
(
D3DTEXF_ANISOTROPIC
==
fltt
,
"GetAutoGenFilterType returned %d
\n
"
,
fltt
);
hr
=
IDirect3DTexture9_SetAutoGenFilterType
(
texture
,
D3DTEXF_LINEAR
);
ok
(
hr
==
D3D_OK
,
"SetAutoGenFilterType D3DTEXF_LINEAR returned %08x
\n
"
,
hr
);
}
levels
=
IDirect3DTexture9_GetLevelCount
(
texture
);
ok
(
levels
==
1
,
"Got %d levels, expected 1
\n
"
,
levels
);
...
...
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