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
667bd327
Commit
667bd327
authored
May 31, 2013
by
Matteo Bruni
Committed by
Alexandre Julliard
May 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix wglCreateContextAttribsARB's attributes handling for real.
parent
facc14ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opengl.c
dlls/winex11.drv/opengl.c
+4
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
667bd327
...
...
@@ -1945,7 +1945,6 @@ static struct wgl_context *X11DRV_wglCreateContextAttribsARB( HDC hdc, struct wg
ret
->
fmt
=
gl
->
format
;
ret
->
vis
=
NULL
;
/* glXCreateContextAttribsARB requires a fbconfig instead of a visual */
ret
->
gl3_context
=
TRUE
;
ret
->
numAttribs
=
0
;
if
(
attribList
)
{
int
*
pContextAttribList
=
&
ret
->
attribList
[
0
];
...
...
@@ -1959,11 +1958,13 @@ static struct wgl_context *X11DRV_wglCreateContextAttribsARB( HDC hdc, struct wg
pContextAttribList
[
0
]
=
GLX_CONTEXT_MAJOR_VERSION_ARB
;
pContextAttribList
[
1
]
=
attribList
[
1
];
pContextAttribList
+=
2
;
ret
->
numAttribs
++
;
break
;
case
WGL_CONTEXT_MINOR_VERSION_ARB
:
pContextAttribList
[
0
]
=
GLX_CONTEXT_MINOR_VERSION_ARB
;
pContextAttribList
[
1
]
=
attribList
[
1
];
pContextAttribList
+=
2
;
ret
->
numAttribs
++
;
break
;
case
WGL_CONTEXT_LAYER_PLANE_ARB
:
break
;
...
...
@@ -1971,16 +1972,17 @@ static struct wgl_context *X11DRV_wglCreateContextAttribsARB( HDC hdc, struct wg
pContextAttribList
[
0
]
=
GLX_CONTEXT_FLAGS_ARB
;
pContextAttribList
[
1
]
=
attribList
[
1
];
pContextAttribList
+=
2
;
ret
->
numAttribs
++
;
break
;
case
WGL_CONTEXT_PROFILE_MASK_ARB
:
pContextAttribList
[
0
]
=
GLX_CONTEXT_PROFILE_MASK_ARB
;
pContextAttribList
[
1
]
=
attribList
[
1
];
pContextAttribList
+=
2
;
ret
->
numAttribs
++
;
break
;
default:
ERR
(
"Unhandled attribList pair: %#x %#x
\n
"
,
attribList
[
0
],
attribList
[
1
]);
}
ret
->
numAttribs
++
;
attribList
+=
2
;
}
}
...
...
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