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
1fd18d76
Commit
1fd18d76
authored
Nov 15, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make a copy of gl_info for later context_destroy_gl_resources() usage.
parent
148e6c3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
context.c
dlls/wined3d/context.c
+6
-0
No files found.
dlls/wined3d/context.c
View file @
1fd18d76
...
...
@@ -1027,6 +1027,7 @@ BOOL context_set_current(struct wined3d_context *ctx)
{
TRACE
(
"Switching away from destroyed context %p.
\n
"
,
old
);
context_destroy_gl_resources
(
old
);
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
old
->
gl_info
);
HeapFree
(
GetProcessHeap
(),
0
,
old
);
}
else
...
...
@@ -1603,6 +1604,11 @@ void context_destroy(struct wined3d_device *device, struct wined3d_context *cont
}
else
{
/* Make a copy of gl_info for context_destroy_gl_resources use, the one
in wined3d_adapter may go away in the meantime */
struct
wined3d_gl_info
*
gl_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
gl_info
));
*
gl_info
=
*
context
->
gl_info
;
context
->
gl_info
=
gl_info
;
context
->
destroyed
=
1
;
destroy
=
FALSE
;
}
...
...
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