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
da2fafca
Commit
da2fafca
authored
Mar 04, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: User memory surfaces should be in the system memory pool.
parent
c1032e97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
surface.c
dlls/ddraw/surface.c
+11
-5
No files found.
dlls/ddraw/surface.c
View file @
da2fafca
...
...
@@ -5531,11 +5531,6 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
/* Ensure DDSD_CAPS is always set. */
desc
->
dwFlags
|=
DDSD_CAPS
;
/* If the surface is of the 'ALLOCONLOAD' type, ignore the LPSURFACE
* field. Frank Herbert's Dune specifies a NULL pointer for lpSurface. */
if
((
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_ALLOCONLOAD
)
||
!
desc
->
lpSurface
)
desc
->
dwFlags
&=
~
DDSD_LPSURFACE
;
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
DWORD
flippable
=
desc
->
ddsCaps
.
dwCaps
&
(
DDSCAPS_FLIP
|
DDSCAPS_COMPLEX
);
...
...
@@ -5813,6 +5808,17 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
}
}
/* If the surface is of the 'ALLOCONLOAD' type, ignore the LPSURFACE
* field. Frank Herbert's Dune specifies a NULL pointer for lpSurface. */
if
((
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_ALLOCONLOAD
)
||
!
desc
->
lpSurface
)
desc
->
dwFlags
&=
~
DDSD_LPSURFACE
;
if
((
desc
->
dwFlags
&
DDSD_LPSURFACE
)
&&
wined3d_desc
.
pool
!=
WINED3D_POOL_SYSTEM_MEM
)
{
WARN
(
"User memory surfaces should be in the system memory pool.
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
texture
);
return
DDERR_INVALIDCAPS
;
}
if
(
desc
->
ddsCaps
.
dwCaps
&
(
DDSCAPS_OVERLAY
))
wined3d_desc
.
usage
|=
WINED3DUSAGE_OVERLAY
;
...
...
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