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
cdc9aadf
Commit
cdc9aadf
authored
Oct 16, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't try to access the swapchain of a destroyed context in context_set_gl_context().
parent
dfea2ab6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
context.c
dlls/wined3d/context.c
+11
-0
No files found.
dlls/wined3d/context.c
View file @
cdc9aadf
...
...
@@ -768,6 +768,17 @@ static BOOL context_set_gl_context(struct wined3d_context *ctx)
ctx
->
valid
=
0
;
WARN
(
"Trying fallback to the backup window.
\n
"
);
/* FIXME: If the context is destroyed it's no longer associated with
* a swapchain, so we can't use the swapchain to get a backup dc. To
* make this work windowless contexts would need to be handled by the
* device. */
if
(
ctx
->
destroyed
)
{
FIXME
(
"Unable to get backup dc for destroyed context %p.
\n
"
,
ctx
);
context_set_current
(
NULL
);
return
FALSE
;
}
if
(
!
(
dc
=
swapchain_get_backup_dc
(
swapchain
)))
{
context_set_current
(
NULL
);
...
...
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