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
4d94a1e6
Commit
4d94a1e6
authored
Jan 25, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: DDSCAPS_ALLOCONLOAD requires DDSCAPS_TEXTURE.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6dc5d194
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
2 deletions
+31
-2
surface.c
dlls/ddraw/surface.c
+3
-2
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+7
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+7
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+7
-0
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+7
-0
No files found.
dlls/ddraw/surface.c
View file @
4d94a1e6
...
...
@@ -5733,9 +5733,10 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
return
DDERR_INVALIDCAPS
;
}
if
((
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_MIPMAP
)
&&
!
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
))
if
((
desc
->
ddsCaps
.
dwCaps
&
(
DDSCAPS_ALLOCONLOAD
|
DDSCAPS_MIPMAP
))
&&
!
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
))
{
WARN
(
"
DDSCAPS_MIPMAP requested without DDSCAPS_TEXTURE.
\n
"
);
WARN
(
"
Caps %#x require DDSCAPS_TEXTURE.
\n
"
,
desc
->
ddsCaps
.
dwCaps
);
HeapFree
(
GetProcessHeap
(),
0
,
texture
);
return
DDERR_INVALIDCAPS
;
}
...
...
dlls/ddraw/tests/ddraw1.c
View file @
4d94a1e6
...
...
@@ -4930,15 +4930,22 @@ static void test_create_surface_pitch(void)
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
/* 10 */
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
/* 15 */
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
...
...
dlls/ddraw/tests/ddraw2.c
View file @
4d94a1e6
...
...
@@ -5972,15 +5972,22 @@ static void test_create_surface_pitch(void)
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
/* 10 */
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
/* 15 */
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
...
...
dlls/ddraw/tests/ddraw4.c
View file @
4d94a1e6
...
...
@@ -7512,12 +7512,19 @@ static void test_create_surface_pitch(void)
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
,
DDSD_LPSURFACE
|
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0x100
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x100
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
/* 20 */
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
...
...
dlls/ddraw/tests/ddraw7.c
View file @
4d94a1e6
...
...
@@ -7360,12 +7360,19 @@ static void test_create_surface_pitch(void)
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
,
DDSD_LPSURFACE
|
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0x100
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x100
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
{
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DDERR_INVALIDCAPS
,
0
,
0
,
0
},
/* 20 */
{
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_TEXTURE
|
DDSCAPS_ALLOCONLOAD
,
0
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0
},
...
...
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