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
5fce682f
Commit
5fce682f
authored
Feb 14, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Added a check for the ATI driver corrupting %fs.
Based on a patch by Lei Zhang.
parent
9d2d5eae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
opengl.c
dlls/winex11.drv/opengl.c
+9
-1
library.h
include/wine/library.h
+1
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
5fce682f
...
...
@@ -292,8 +292,17 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
template
.
visualid
=
XVisualIDFromVisual
(
visual
);
vis
=
XGetVisualInfo
(
gdi_display
,
VisualIDMask
,
&
template
,
&
num
);
if
(
vis
)
{
WORD
old_fs
=
wine_get_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
)
{
wine_set_fs
(
old_fs
);
wine_tsx11_unlock
();
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
"
);
return
FALSE
;
}
}
if
(
ctx
)
{
...
...
@@ -411,7 +420,6 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
#undef LOAD_FUNCPTR
if
(
!
X11DRV_WineGL_InitOpenglInfo
())
{
ERR
(
"Intialization of OpenGL info failed, disabling OpenGL!
\n
"
);
wine_dlclose
(
opengl_handle
,
NULL
,
0
);
opengl_handle
=
NULL
;
return
FALSE
;
...
...
include/wine/library.h
View file @
5fce682f
...
...
@@ -177,7 +177,7 @@ inline static int wine_ldt_is_empty( const LDT_ENTRY *ent )
# define __DEFINE_GET_SEG(seg) \
extern inline unsigned short wine_get_##seg(void); \
extern inline unsigned short wine_get_##seg(void) \
{ unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
{ unsigned short res; __asm__
__volatile__
("movw %%" #seg ",%w0" : "=r"(res)); return res; }
# define __DEFINE_SET_SEG(seg) \
extern inline void wine_set_##seg(int val); \
extern inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
...
...
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