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
4f651808
Commit
4f651808
authored
Nov 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Disallow empty surfaces.
parent
2fb7edc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
visual.c
dlls/d3d9/tests/visual.c
+2
-5
surface.c
dlls/wined3d/surface.c
+1
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
4f651808
...
...
@@ -10613,11 +10613,8 @@ static void depth_bounds_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
32
,
32
,
MAKEFOURCC
(
'N'
,
'V'
,
'D'
,
'B'
),
D3DPOOL_DEFAULT
,
&
offscreen_surface
,
NULL
);
todo_wine
ok
(
hr
!=
D3D_OK
,
"Able to create surface, hr = %08x
\n
"
,
hr
);
if
(
offscreen_surface
)
{
IDirect3DSurface9_Release
(
offscreen_surface
);
}
ok
(
FAILED
(
hr
),
"Able to create surface, hr %#x.
\n
"
,
hr
);
if
(
offscreen_surface
)
IDirect3DSurface9_Release
(
offscreen_surface
);
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
|
D3DCLEAR_ZBUFFER
,
0xffffffff
,
1
.
0
,
0
);
ok
(
SUCCEEDED
(
hr
),
"Clear failed, hr %#x.
\n
"
,
hr
);
...
...
dlls/wined3d/surface.c
View file @
4f651808
...
...
@@ -353,6 +353,7 @@ HRESULT surface_init(IWineD3DSurfaceImpl *surface, WINED3DSURFTYPE surface_type,
/* FIXME: Check that the format is supported by the device. */
resource_size
=
wined3d_format_calculate_size
(
format
,
alignment
,
width
,
height
);
if
(
!
resource_size
)
return
WINED3DERR_INVALIDCALL
;
/* Look at the implementation and set the correct Vtable. */
switch
(
surface_type
)
...
...
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