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
0cca1ea8
Commit
0cca1ea8
authored
Oct 03, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Don't choose double buffered modes with gdi support.
parent
d298b68f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
opengl.c
dlls/winex11.drv/opengl.c
+13
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
0cca1ea8
...
...
@@ -607,6 +607,8 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
int
drawattrib
=
0
;
int
nvfloatattrib
=
GLX_DONT_CARE
;
int
pixelattrib
=
0
;
int
supportgdi
=
-
1
;
int
doublebuf
=
-
1
;
/* 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. */
...
...
@@ -653,6 +655,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
pop
=
iWGLAttr
[
++
cur
];
PUSH2
(
oGLXAttr
,
GLX_DOUBLEBUFFER
,
pop
);
TRACE
(
"pAttr[%d] = GLX_DOUBLEBUFFER: %d
\n
"
,
cur
,
pop
);
doublebuf
=
pop
;
break
;
case
WGL_PIXEL_TYPE_ARB
:
...
...
@@ -673,6 +676,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
pop
=
iWGLAttr
[
++
cur
];
PUSH2
(
oGLXAttr
,
GLX_X_RENDERABLE
,
pop
);
TRACE
(
"pAttr[%d] = WGL_SUPPORT_GDI_ARB: %d
\n
"
,
cur
,
pop
);
supportgdi
=
pop
;
break
;
case
WGL_DRAW_TO_BITMAP_ARB
:
...
...
@@ -772,6 +776,15 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
++
cur
;
}
if
(
supportgdi
>
0
)
{
if
(
doublebuf
>
0
)
{
WARN
(
"Attempting double-buffered gdi format
\n
"
);
return
-
1
;
}
if
(
doublebuf
<
0
)
PUSH2
(
oGLXAttr
,
GLX_DOUBLEBUFFER
,
False
);
}
/* Apply the OR'd drawable type bitmask now EVEN when WGL_DRAW_TO* is unset.
* It is needed in all cases because GLX_DRAWABLE_TYPE default to GLX_WINDOW_BIT. */
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
drawattrib
);
...
...
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