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
9da10277
Commit
9da10277
authored
Dec 10, 2006
by
Chris Robinson
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Properly handle GLX_DRAWABLE_TYPE queries.
parent
71f41e5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
opengl.c
dlls/winex11.drv/opengl.c
+17
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
9da10277
...
...
@@ -615,6 +615,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
int
nAttribs
=
0
;
unsigned
cur
=
0
;
int
pop
;
int
drawattrib
=
0
;
int
isColor
=
0
;
int
wantColorBits
=
0
;
int
sz_alpha
=
0
;
...
...
@@ -692,25 +693,27 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
case
WGL_DRAW_TO_BITMAP_ARB
:
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
)
{
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
GLX_PIXMAP_BIT
);
TRACE
(
"pAttr[%d] = GLX_DRAWABLE_TYPE: GLX_PIXMAP_BIT
\n
"
,
cur
);
drawattrib
|=
GLX_PIXMAP_BIT
;
}
break
;
case
WGL_DRAW_TO_WINDOW_ARB
:
pop
=
iWGLAttr
[
++
cur
];
TRACE
(
"pAttr[%d] = WGL_DRAW_TO_WINDOW_ARB: %d
\n
"
,
cur
,
pop
);
/* GLX_DRAWABLE_TYPE flags need to be OR'd together. See below. */
if
(
pop
)
{
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
GLX_WINDOW_BIT
);
TRACE
(
"pAttr[%d] = GLX_DRAWABLE_TYPE: GLX_WINDOW_BIT
\n
"
,
cur
);
drawattrib
|=
GLX_WINDOW_BIT
;
}
break
;
case
WGL_DRAW_TO_PBUFFER_ARB
:
pop
=
iWGLAttr
[
++
cur
];
TRACE
(
"pAttr[%d] = WGL_DRAW_TO_PBUFFER_ARB: %d
\n
"
,
cur
,
pop
);
/* GLX_DRAWABLE_TYPE flags need to be OR'd together. See below. */
if
(
pop
)
{
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
GLX_PBUFFER_BIT
);
TRACE
(
"pAttr[%d] = GLX_DRAWABLE_TYPE: GLX_PBUFFER_BIT
\n
"
,
cur
);
drawattrib
|=
GLX_PBUFFER_BIT
;
}
break
;
...
...
@@ -756,7 +759,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
return
-
1
;
/** error: don't support it */
}
else
{
PUSH2
(
oGLXAttr
,
GLX_X_RENDERABLE
,
pop
);
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
GLX_PBUFFER_BIT
)
;
drawattrib
|=
GLX_PBUFFER_BIT
;
}
}
break
;
...
...
@@ -807,6 +810,12 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
TRACE
(
"pAttr[%d] = WGL_COLOR_BITS_ARB: %d
\n
"
,
cur
,
wantColorBits
);
}
/* Apply the OR'd drawable type bitmask now. */
if
(
drawattrib
)
{
PUSH2
(
oGLXAttr
,
GLX_DRAWABLE_TYPE
,
drawattrib
);
TRACE
(
"pAttr[?] = GLX_DRAWABLE_TYPE: %#x
\n
"
,
drawattrib
);
}
return
nAttribs
;
}
...
...
@@ -2433,6 +2442,7 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelF
curCfg
=
cfgs
[
fmt_index
];
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
curCfg
,
curGLXAttr
,
piValues
+
i
);
if
(
hTest
)
goto
get_error
;
curGLXAttr
=
0
;
}
else
{
piValues
[
i
]
=
GL_FALSE
;
}
...
...
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