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
6334bf09
Commit
6334bf09
authored
Oct 22, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Skip unsupported resources in test_resource_type.
parent
86168c4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
device.c
dlls/d3d9/tests/device.c
+14
-0
No files found.
dlls/d3d9/tests/device.c
View file @
6334bf09
...
@@ -8893,6 +8893,7 @@ static void test_resource_type(void)
...
@@ -8893,6 +8893,7 @@ static void test_resource_type(void)
ULONG
refcount
;
ULONG
refcount
;
HWND
window
;
HWND
window
;
HRESULT
hr
;
HRESULT
hr
;
D3DCAPS9
caps
;
window
=
CreateWindowA
(
"static"
,
"d3d9_test"
,
WS_OVERLAPPEDWINDOW
,
window
=
CreateWindowA
(
"static"
,
"d3d9_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
...
@@ -8906,6 +8907,9 @@ static void test_resource_type(void)
...
@@ -8906,6 +8907,9 @@ static void test_resource_type(void)
return
;
return
;
}
}
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_X8R8G8B8
,
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
4
,
4
,
D3DFMT_X8R8G8B8
,
D3DPOOL_SYSTEMMEM
,
&
surface
,
NULL
);
D3DPOOL_SYSTEMMEM
,
&
surface
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create surface, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create surface, hr %#x.
\n
"
,
hr
);
...
@@ -8966,6 +8970,8 @@ static void test_resource_type(void)
...
@@ -8966,6 +8970,8 @@ static void test_resource_type(void)
IDirect3DSurface9_Release
(
surface
);
IDirect3DSurface9_Release
(
surface
);
IDirect3DTexture9_Release
(
texture
);
IDirect3DTexture9_Release
(
texture
);
if
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP
)
{
hr
=
IDirect3DDevice9_CreateCubeTexture
(
device
,
1
,
1
,
0
,
D3DFMT_X8R8G8B8
,
hr
=
IDirect3DDevice9_CreateCubeTexture
(
device
,
1
,
1
,
0
,
D3DFMT_X8R8G8B8
,
D3DPOOL_SYSTEMMEM
,
&
cube_texture
,
NULL
);
D3DPOOL_SYSTEMMEM
,
&
cube_texture
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create cube texture, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create cube texture, hr %#x.
\n
"
,
hr
);
...
@@ -8987,7 +8993,12 @@ static void test_resource_type(void)
...
@@ -8987,7 +8993,12 @@ static void test_resource_type(void)
surface_desc
.
Type
);
surface_desc
.
Type
);
IDirect3DSurface9_Release
(
surface
);
IDirect3DSurface9_Release
(
surface
);
IDirect3DCubeTexture9_Release
(
cube_texture
);
IDirect3DCubeTexture9_Release
(
cube_texture
);
}
else
skip
(
"Cube maps not supported.
\n
"
);
if
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_MIPVOLUMEMAP
)
{
hr
=
IDirect3DDevice9_CreateVolumeTexture
(
device
,
2
,
4
,
8
,
4
,
0
,
D3DFMT_X8R8G8B8
,
hr
=
IDirect3DDevice9_CreateVolumeTexture
(
device
,
2
,
4
,
8
,
4
,
0
,
D3DFMT_X8R8G8B8
,
D3DPOOL_SYSTEMMEM
,
&
volume_texture
,
NULL
);
D3DPOOL_SYSTEMMEM
,
&
volume_texture
,
NULL
);
type
=
IDirect3DVolumeTexture9_GetType
(
volume_texture
);
type
=
IDirect3DVolumeTexture9_GetType
(
volume_texture
);
...
@@ -9031,6 +9042,9 @@ static void test_resource_type(void)
...
@@ -9031,6 +9042,9 @@ static void test_resource_type(void)
ok
(
volume_desc
.
Depth
==
2
,
"Expected depth 2, got %u.
\n
"
,
volume_desc
.
Depth
);
ok
(
volume_desc
.
Depth
==
2
,
"Expected depth 2, got %u.
\n
"
,
volume_desc
.
Depth
);
IDirect3DVolume9_Release
(
volume
);
IDirect3DVolume9_Release
(
volume
);
IDirect3DVolumeTexture9_Release
(
volume_texture
);
IDirect3DVolumeTexture9_Release
(
volume_texture
);
}
else
skip
(
"Mipmapped volume maps not supported.
\n
"
);
refcount
=
IDirect3DDevice9_Release
(
device
);
refcount
=
IDirect3DDevice9_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
...
...
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