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
f82a5b61
Commit
f82a5b61
authored
Apr 03, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid using wine_get/set_fs().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44c93556
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
opengl.c
dlls/winex11.drv/opengl.c
+5
-3
No files found.
dlls/winex11.drv/opengl.c
View file @
f82a5b61
...
...
@@ -440,12 +440,14 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
vis
=
pglXChooseVisual
(
gdi_display
,
screen
,
attribList
);
if
(
vis
)
{
#ifdef __i386__
WORD
old_fs
=
wine_get_fs
();
WORD
old_fs
,
new_fs
;
__asm__
(
"mov %%fs,%0"
:
"=r"
(
old_fs
)
);
/* Create a GLX Context. Without one we can't query GL information */
ctx
=
pglXCreateContext
(
gdi_display
,
vis
,
None
,
GL_TRUE
);
if
(
wine_get_fs
()
!=
old_fs
)
__asm__
(
"mov %%fs,%0"
:
"=r"
(
new_fs
)
);
__asm__
(
"mov %0,%%fs"
::
"r"
(
old_fs
)
);
if
(
old_fs
!=
new_fs
)
{
wine_set_fs
(
old_fs
);
ERR
(
"%%fs register corrupted, probably broken ATI driver, disabling OpenGL.
\n
"
);
ERR
(
"You need to set the
\"
UseFastTls
\"
option to
\"
2
\"
in your X config file.
\n
"
);
goto
done
;
...
...
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