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
ef9c0cec
Commit
ef9c0cec
authored
Nov 18, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Always create direct rendering OpenGL contexts.
Indirect rendering is no longer supported nowadays. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0de7f86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
opengl.c
dlls/winex11.drv/opengl.c
+3
-6
No files found.
dlls/winex11.drv/opengl.c
View file @
ef9c0cec
...
...
@@ -1264,18 +1264,15 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex
{
GLXContext
ctx
;
/* We use indirect rendering for rendering to bitmaps. See get_formats for a comment about this. */
BOOL
indirect
=
!
(
context
->
fmt
->
dwFlags
&
PFD_DRAW_TO_BITMAP
);
if
(
context
->
gl3_context
)
{
if
(
context
->
numAttribs
)
ctx
=
pglXCreateContextAttribsARB
(
gdi_display
,
context
->
fmt
->
fbconfig
,
shareList
,
indirect
,
context
->
attribList
);
ctx
=
pglXCreateContextAttribsARB
(
gdi_display
,
context
->
fmt
->
fbconfig
,
shareList
,
GL_TRUE
,
context
->
attribList
);
else
ctx
=
pglXCreateContextAttribsARB
(
gdi_display
,
context
->
fmt
->
fbconfig
,
shareList
,
indirect
,
NULL
);
ctx
=
pglXCreateContextAttribsARB
(
gdi_display
,
context
->
fmt
->
fbconfig
,
shareList
,
GL_TRUE
,
NULL
);
}
else
if
(
context
->
vis
)
ctx
=
pglXCreateContext
(
gdi_display
,
context
->
vis
,
shareList
,
indirect
);
ctx
=
pglXCreateContext
(
gdi_display
,
context
->
vis
,
shareList
,
GL_TRUE
);
else
/* Create a GLX Context for a pbuffer */
ctx
=
pglXCreateNewContext
(
gdi_display
,
context
->
fmt
->
fbconfig
,
context
->
fmt
->
render_type
,
shareList
,
TRUE
);
...
...
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