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
ed37174a
Commit
ed37174a
authored
May 28, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make sure that all glX functions are called under the X11 lock.
parent
2fba300c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
28 deletions
+77
-28
opengl.c
dlls/winex11.drv/opengl.c
+74
-16
window.c
dlls/winex11.drv/window.c
+3
-12
No files found.
dlls/winex11.drv/opengl.c
View file @
ed37174a
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/window.c
View file @
ed37174a
...
...
@@ -423,10 +423,7 @@ BOOL X11DRV_set_win_format( HWND hwnd, XID fbconfig_id )
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
))
&&
!
(
data
=
X11DRV_create_win_data
(
hwnd
)))
return
FALSE
;
wine_tsx11_lock
();
vis
=
visual_from_fbconfig_id
(
fbconfig_id
);
wine_tsx11_unlock
();
if
(
!
vis
)
return
FALSE
;
if
(
!
(
vis
=
visual_from_fbconfig_id
(
fbconfig_id
)))
return
FALSE
;
if
(
data
->
whole_window
)
{
...
...
@@ -559,15 +556,9 @@ static void sync_gl_drawable(struct x11drv_win_data *data)
}
#endif
wine_tsx11_lock
();
vis
=
visual_from_fbconfig_id
(
data
->
fbconfig_id
);
if
(
!
vis
)
{
wine_tsx11_unlock
();
return
;
}
if
(
!
(
vis
=
visual_from_fbconfig_id
(
data
->
fbconfig_id
)))
return
;
wine_tsx11_lock
();
pix
=
XCreatePixmap
(
gdi_display
,
root_window
,
w
,
h
,
vis
->
depth
);
if
(
!
pix
)
{
...
...
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