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
317d5406
Commit
317d5406
authored
Dec 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle client storage in surface_init_sysmem().
parent
b57d1e7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
surface.c
dlls/wined3d/surface.c
+12
-4
No files found.
dlls/wined3d/surface.c
View file @
317d5406
...
...
@@ -3956,13 +3956,21 @@ BOOL surface_init_sysmem(struct wined3d_surface *surface)
{
if
(
!
surface
->
resource
.
allocatedMemory
)
{
surface
->
resource
.
heapMemory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
surface
->
resource
.
size
+
RESOURCE_ALIGNMENT
);
if
(
!
surface
->
resource
.
heapMemory
)
{
ERR
(
"Out of memory
\n
"
);
return
FALSE
;
if
(
!
(
surface
->
resource
.
heapMemory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
surface
->
resource
.
size
+
RESOURCE_ALIGNMENT
)))
{
ERR
(
"Failed to allocate memory.
\n
"
);
return
FALSE
;
}
}
else
if
(
!
(
surface
->
flags
&
SFLAG_CLIENT
))
{
ERR
(
"Surface %p has heapMemory %p and flags %#x.
\n
"
,
surface
,
surface
->
resource
.
heapMemory
,
surface
->
flags
);
}
surface
->
resource
.
allocatedMemory
=
(
BYTE
*
)(((
ULONG_PTR
)
surface
->
resource
.
heapMemory
+
(
RESOURCE_ALIGNMENT
-
1
))
&
~
(
RESOURCE_ALIGNMENT
-
1
));
}
...
...
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