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
22d3e6db
Commit
22d3e6db
authored
Mar 27, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use GLX_DONT_CARE instead of ~0 in ConvertAttribWGLtoGLX().
parent
e2e77545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
opengl.c
dlls/winex11.drv/opengl.c
+6
-6
No files found.
dlls/winex11.drv/opengl.c
View file @
22d3e6db
...
...
@@ -680,7 +680,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
int
pop
;
int
drawattrib
=
0
;
int
nvfloatattrib
=
GLX_DONT_CARE
;
int
pixelattrib
=
~
0
;
int
pixelattrib
=
GLX_DONT_CARE
;
/* The list of WGL attributes is allowed to be NULL. We don't return here for NULL
* because we need to do fixups for GLX_DRAWABLE_TYPE/GLX_RENDER_TYPE/GLX_FLOAT_COMPONENTS_NV. */
...
...
@@ -876,15 +876,15 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
}
/* By default glXChooseFBConfig defaults to GLX_WINDOW_BIT. wglChoosePixelFormatARB searches through
* all formats. Unless drawattrib is set to a non-zero value override it with
~0, so that pixmap and pbuffer
* formats appear as well. */
if
(
!
drawattrib
)
drawattrib
=
~
0
;
* all formats. Unless drawattrib is set to a non-zero value override it with
GLX_DONT_CARE, so that
*
pixmap and pbuffer
formats appear as well. */
if
(
!
drawattrib
)
drawattrib
=
GLX_DONT_CARE
;
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
drawattrib
);
TRACE
(
"pAttr[?] = GLX_DRAWABLE_TYPE: %#x
\n
"
,
drawattrib
);
/* By default glXChooseFBConfig uses GLX_RGBA_BIT as the default value. Since wglChoosePixelFormatARB
* searches in all formats we have to do the same. For this reason we set GLX_RENDER_TYPE to
~0 unless
* it is overridden. */
* searches in all formats we have to do the same. For this reason we set GLX_RENDER_TYPE to
*
GLX_DONT_CARE unless
it is overridden. */
PUSH2
(
oGLXAttr
,
GLX_RENDER_TYPE
,
pixelattrib
);
TRACE
(
"pAttr[?] = GLX_RENDER_TYPE: %#x
\n
"
,
pixelattrib
);
...
...
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