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
390d3929
Commit
390d3929
authored
Jul 31, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Fix usage of non-GLX visual in glXCreateContext.
parent
09436d69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
opengl.c
dlls/winex11.drv/opengl.c
+2
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
390d3929
...
...
@@ -275,15 +275,12 @@ MAKE_FUNCPTR(glFlush)
static
BOOL
infoInitialized
=
FALSE
;
static
BOOL
X11DRV_WineGL_InitOpenglInfo
(
void
)
{
int
screen
=
DefaultScreen
(
gdi_display
);
Window
win
=
RootWindow
(
gdi_display
,
screen
);
const
char
*
str
;
Visual
*
visual
;
XVisualInfo
template
;
XVisualInfo
*
vis
;
int
num
;
GLXContext
ctx
=
NULL
;
int
attribList
[]
=
{
GLX_RGBA
,
GLX_DOUBLEBUFFER
,
None
};
if
(
infoInitialized
)
return
TRUE
;
...
...
@@ -291,9 +288,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
wine_tsx11_lock
();
visual
=
DefaultVisual
(
gdi_display
,
screen
);
template
.
visualid
=
XVisualIDFromVisual
(
visual
);
vis
=
XGetVisualInfo
(
gdi_display
,
VisualIDMask
,
&
template
,
&
num
);
vis
=
pglXChooseVisual
(
gdi_display
,
screen
,
attribList
);
if
(
vis
)
{
WORD
old_fs
=
wine_get_fs
();
/* Create a GLX Context. Without one we can't query GL information */
...
...
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