Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a743f085
Commit
a743f085
authored
Aug 16, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Aug 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Release old drawables after setting new ones in sync_context().
parent
bf1b0d5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
opengl.c
dlls/winex11.drv/opengl.c
+5
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
a743f085
...
...
@@ -1201,18 +1201,19 @@ static void mark_drawable_dirty( struct gl_drawable *old, struct gl_drawable *ne
static
inline
void
sync_context
(
struct
wgl_context
*
context
)
{
BOOL
refresh
=
FALSE
;
struct
gl_drawable
*
old
[
2
]
=
{
NULL
};
pthread_mutex_lock
(
&
context_mutex
);
if
(
context
->
new_drawables
[
0
])
{
release_gl_drawable
(
context
->
drawables
[
0
]
)
;
old
[
0
]
=
context
->
drawables
[
0
]
;
context
->
drawables
[
0
]
=
context
->
new_drawables
[
0
];
context
->
new_drawables
[
0
]
=
NULL
;
refresh
=
TRUE
;
}
if
(
context
->
new_drawables
[
1
])
{
release_gl_drawable
(
context
->
drawables
[
1
]
)
;
old
[
1
]
=
context
->
drawables
[
1
]
;
context
->
drawables
[
1
]
=
context
->
new_drawables
[
1
];
context
->
new_drawables
[
1
]
=
NULL
;
refresh
=
TRUE
;
...
...
@@ -1224,6 +1225,8 @@ static inline void sync_context(struct wgl_context *context)
context
->
drawables
[
1
]
->
drawable
,
context
->
ctx
);
else
pglXMakeCurrent
(
gdi_display
,
context
->
drawables
[
0
]
->
drawable
,
context
->
ctx
);
release_gl_drawable
(
old
[
0
]
);
release_gl_drawable
(
old
[
1
]
);
}
pthread_mutex_unlock
(
&
context_mutex
);
}
...
...
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