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
4ea2d9f6
Commit
4ea2d9f6
authored
Nov 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Add a test for 0 width / height surface creation.
parent
4f651808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
surface.c
dlls/d3d9/tests/surface.c
+15
-0
No files found.
dlls/d3d9/tests/surface.c
View file @
4ea2d9f6
...
...
@@ -491,6 +491,20 @@ static void test_getdc(IDirect3DDevice9 *device)
}
}
static
void
test_surface_dimensions
(
IDirect3DDevice9
*
device
)
{
IDirect3DSurface9
*
surface
;
HRESULT
hr
;
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
0
,
1
,
D3DFMT_A8R8G8B8
,
D3DPOOL_SCRATCH
,
&
surface
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"CreateOffscreenPlainSurface returned %#x, expected D3DERR_INVALIDCALL.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IDirect3DSurface9_Release
(
surface
);
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
1
,
0
,
D3DFMT_A8R8G8B8
,
D3DPOOL_SCRATCH
,
&
surface
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"CreateOffscreenPlainSurface returned %#x, expected D3DERR_INVALIDCALL.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IDirect3DSurface9_Release
(
surface
);
}
START_TEST
(
surface
)
{
HMODULE
d3d9_handle
;
...
...
@@ -513,6 +527,7 @@ START_TEST(surface)
test_lockrect_invalid
(
device_ptr
);
test_private_data
(
device_ptr
);
test_getdc
(
device_ptr
);
test_surface_dimensions
(
device_ptr
);
refcount
=
IDirect3DDevice9_Release
(
device_ptr
);
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