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
73546edc
Commit
73546edc
authored
May 17, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Make sure WGL_DRAW_TO_BITMAP_ARB is only seen on our duplicated bitmap-capable formats.
parent
2eec8aca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
opengl.c
dlls/winex11.drv/opengl.c
+12
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
73546edc
...
...
@@ -693,12 +693,9 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
break
;
case
WGL_DRAW_TO_BITMAP_ARB
:
/* This flag is set in a WineGLPixelFormat */
pop
=
iWGLAttr
[
++
cur
];
TRACE
(
"pAttr[%d] = WGL_DRAW_TO_BITMAP_ARB: %d
\n
"
,
cur
,
pop
);
/* GLX_DRAWABLE_TYPE flags need to be OR'd together. See below. */
if
(
pop
)
{
drawattrib
|=
GLX_PIXMAP_BIT
;
}
break
;
case
WGL_DRAW_TO_WINDOW_ARB
:
...
...
@@ -2691,8 +2688,13 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
* using glXChooseFBConfig but we filter the result of glXChooseFBConfig later on by passing a dwFlags to 'ConvertPixelFormatGLXtoWGL'. */
for
(
i
=
0
;
piAttribIList
[
i
]
!=
0
;
i
+=
2
)
{
if
(
piAttribIList
[
i
]
==
WGL_SUPPORT_GDI_ARB
)
switch
(
piAttribIList
[
i
]
)
{
case
WGL_DRAW_TO_BITMAP_ARB
:
if
(
piAttribIList
[
i
+
1
])
dwFlags
|=
PFD_DRAW_TO_BITMAP
;
break
;
case
WGL_SUPPORT_GDI_ARB
:
if
(
piAttribIList
[
i
+
1
])
dwFlags
|=
PFD_SUPPORT_GDI
;
break
;
...
...
@@ -2891,14 +2893,17 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelF
piValues
[
i
]
=
(
fmt
->
dwFlags
&
PFD_SUPPORT_GDI
)
?
TRUE
:
FALSE
;
continue
;
case
WGL_DRAW_TO_WINDOW_ARB
:
case
WGL_DRAW_TO_BITMAP_ARB
:
if
(
!
fmt
)
goto
pix_error
;
piValues
[
i
]
=
(
fmt
->
dwFlags
&
PFD_DRAW_TO_BITMAP
)
?
TRUE
:
FALSE
;
continue
;
case
WGL_DRAW_TO_WINDOW_ARB
:
case
WGL_DRAW_TO_PBUFFER_ARB
:
if
(
!
fmt
)
goto
pix_error
;
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_DRAWABLE_TYPE
,
&
tmp
);
if
(
hTest
)
goto
get_error
;
if
((
curWGLAttr
==
WGL_DRAW_TO_WINDOW_ARB
&&
(
tmp
&
GLX_WINDOW_BIT
))
||
(
curWGLAttr
==
WGL_DRAW_TO_BITMAP_ARB
&&
(
tmp
&
GLX_PIXMAP_BIT
))
||
(
curWGLAttr
==
WGL_DRAW_TO_PBUFFER_ARB
&&
(
tmp
&
GLX_PBUFFER_BIT
)))
piValues
[
i
]
=
GL_TRUE
;
else
...
...
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