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
e4eac235
Commit
e4eac235
authored
Jan 04, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Fix piAttributes NULL crash.
parent
7c95df77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
opengl.c
dlls/winex11.drv/opengl.c
+5
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
e4eac235
...
...
@@ -605,6 +605,10 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
int
wantColorBits
=
0
;
int
sz_alpha
=
0
;
/* The list of WGL attributes is allowed to be NULL, so don't return -1 (error) but just 0 */
if
(
iWGLAttr
==
NULL
)
return
0
;
while
(
0
!=
iWGLAttr
[
cur
])
{
TRACE
(
"pAttr[%d] = %x
\n
"
,
cur
,
iWGLAttr
[
cur
]);
...
...
@@ -1963,7 +1967,7 @@ static HPBUFFERARB WINAPI X11DRV_wglCreatePbufferARB(HDC hdc, int iPixelFormat,
}
PUSH2
(
attribs
,
GLX_PBUFFER_WIDTH
,
iWidth
);
PUSH2
(
attribs
,
GLX_PBUFFER_HEIGHT
,
iHeight
);
while
(
0
!=
*
piAttribList
)
{
while
(
piAttribList
&&
0
!=
*
piAttribList
)
{
int
attr_v
;
switch
(
*
piAttribList
)
{
case
WGL_TEXTURE_FORMAT_ARB
:
{
...
...
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