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
81b7208e
Commit
81b7208e
authored
Oct 19, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
Oct 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not do any GLX calls on a display that does not support GLX.
parent
89d4472d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
x11drv_main.c
dlls/x11drv/x11drv_main.c
+15
-11
No files found.
dlls/x11drv/x11drv_main.c
View file @
81b7208e
...
...
@@ -147,17 +147,21 @@ static void create_desktop( const char *geometry )
XVisualInfo
*
vi
=
NULL
;
#ifdef HAVE_OPENGL
BOOL
dblbuf_visual
;
/* Get in wine.ini if the desktop window should have a double-buffered visual or not */
dblbuf_visual
=
PROFILE_GetWineIniBool
(
"x11drv"
,
"DesktopDoubleBuffered"
,
0
);
if
(
dblbuf_visual
)
{
int
dblBuf
[]
=
{
GLX_RGBA
,
GLX_DEPTH_SIZE
,
16
,
GLX_DOUBLEBUFFER
,
None
};
ENTER_GL
();
vi
=
glXChooseVisual
(
display
,
DefaultScreen
(
display
),
dblBuf
);
win_attr
.
colormap
=
XCreateColormap
(
display
,
RootWindow
(
display
,
vi
->
screen
),
vi
->
visual
,
AllocNone
);
LEAVE_GL
();
int
err_base
,
evt_base
;
/* Get in wine.ini if the desktop window should have a double-buffered visual or not.
But first, test if OpenGL is even supported on the display ! */
if
(
glXQueryExtension
(
display
,
&
err_base
,
&
evt_base
)
==
True
)
{
dblbuf_visual
=
PROFILE_GetWineIniBool
(
"x11drv"
,
"DesktopDoubleBuffered"
,
0
);
if
(
dblbuf_visual
)
{
int
dblBuf
[]
=
{
GLX_RGBA
,
GLX_DEPTH_SIZE
,
16
,
GLX_DOUBLEBUFFER
,
None
};
ENTER_GL
();
vi
=
glXChooseVisual
(
display
,
DefaultScreen
(
display
),
dblBuf
);
win_attr
.
colormap
=
XCreateColormap
(
display
,
RootWindow
(
display
,
vi
->
screen
),
vi
->
visual
,
AllocNone
);
LEAVE_GL
();
}
}
#endif
/* HAVE_OPENGL */
...
...
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