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
8922e200
Commit
8922e200
authored
Aug 23, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix opengl pixel format bug.
parent
859f8bce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
opengl.c
dlls/winex11.drv/opengl.c
+8
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
8922e200
...
...
@@ -2,6 +2,7 @@
* X11DRV OpenGL functions
*
* Copyright 2000 Lionel Ulmer
* Copyright 2006 Roderick Colenbrander
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -255,7 +256,7 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
int
value
=
0
;
/* Pixel type */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_RENDER_TYPE
,
&
value
);
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_RENDER_TYPE
,
&
value
);
if
(
value
&
GLX_RGBA_BIT
)
iPixelType
=
PFD_TYPE_RGBA
;
else
...
...
@@ -266,7 +267,7 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
}
/* Doublebuffer */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_DOUBLEBUFFER
,
&
value
);
if
(
value
)
dwFlags
|=
PFD_DOUBLEBUFFER
;
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_DOUBLEBUFFER
,
&
value
);
if
(
value
)
dwFlags
|=
PFD_DOUBLEBUFFER
;
if
(
!
(
ppfd
->
dwFlags
&
PFD_DOUBLEBUFFER_DONTCARE
))
{
if
((
ppfd
->
dwFlags
&
PFD_DOUBLEBUFFER
)
!=
(
dwFlags
&
PFD_DOUBLEBUFFER
))
{
goto
choose_exit
;
...
...
@@ -274,7 +275,7 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
}
/* Stereo */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_STEREO
,
&
value
);
if
(
value
)
dwFlags
|=
PFD_STEREO
;
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_STEREO
,
&
value
);
if
(
value
)
dwFlags
|=
PFD_STEREO
;
if
(
!
(
ppfd
->
dwFlags
&
PFD_STEREO_DONTCARE
))
{
if
((
ppfd
->
dwFlags
&
PFD_STEREO
)
!=
(
dwFlags
&
PFD_STEREO
))
{
goto
choose_exit
;
...
...
@@ -282,25 +283,25 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
}
/* Alpha bits */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_ALPHA_SIZE
,
&
value
);
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_ALPHA_SIZE
,
&
value
);
if
(
ppfd
->
iPixelType
==
PFD_TYPE_RGBA
&&
ppfd
->
cAlphaBits
&&
!
value
)
{
goto
choose_exit
;
}
/* Depth bits */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_DEPTH_SIZE
,
&
value
);
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_DEPTH_SIZE
,
&
value
);
if
(
ppfd
->
cDepthBits
&&
!
value
)
{
goto
choose_exit
;
}
/* Stencil bits */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_STENCIL_SIZE
,
&
value
);
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_STENCIL_SIZE
,
&
value
);
if
(
ppfd
->
cStencilBits
&&
!
value
)
{
goto
choose_exit
;
}
/* Aux buffers */
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
],
GLX_AUX_BUFFERS
,
&
value
);
pglXGetFBConfigAttrib
(
gdi_display
,
cfgs
[
fmt_index
-
1
],
GLX_AUX_BUFFERS
,
&
value
);
if
(
ppfd
->
cAuxBuffers
&&
!
value
)
{
goto
choose_exit
;
}
...
...
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