Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
586ed7d4
Commit
586ed7d4
authored
Jan 11, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jan 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: Use indirect contexts if the surface is a pixmap.
parent
629889b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wgl.c
dlls/opengl32/wgl.c
+6
-6
No files found.
dlls/opengl32/wgl.c
View file @
586ed7d4
...
...
@@ -537,10 +537,10 @@ BOOL WINAPI wglMakeCurrent(HDC hdc,
vis
=
XGetVisualInfo
(
ctx
->
display
,
VisualIDMask
,
&
template
,
&
num
);
TRACE
(
" Creating GLX Context
\n
"
);
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
vis
,
NULL
,
True
);
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
vis
,
NULL
,
type
==
OBJ_MEMDC
?
False
:
True
);
}
else
{
TRACE
(
" Creating GLX Context
\n
"
);
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
ctx
->
vis
,
NULL
,
True
);
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
ctx
->
vis
,
NULL
,
type
==
OBJ_MEMDC
?
False
:
True
);
}
TRACE
(
" created a delayed OpenGL context (%p)
\n
"
,
ctx
->
ctx
);
}
...
...
@@ -574,8 +574,8 @@ BOOL WINAPI wglMakeContextCurrentARB(HDC hDrawDC, HDC hReadDC, HGLRC hglrc)
Drawable
d_read
=
get_drawable
(
hReadDC
);
if
(
ctx
->
ctx
==
NULL
)
{
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
ctx
->
vis
,
NULL
,
True
);
TRACE
(
" created a delayed OpenGL context (%p)
\n
"
,
ctx
->
ctx
);
ctx
->
ctx
=
glXCreateContext
(
ctx
->
display
,
ctx
->
vis
,
NULL
,
GetObjectType
(
hDrawDC
)
==
OBJ_MEMDC
?
False
:
True
);
TRACE
(
" created a delayed OpenGL context (%p)
\n
"
,
ctx
->
ctx
);
}
ret
=
wine_glx
.
p_glXMakeContextCurrent
(
ctx
->
display
,
d_draw
,
d_read
,
ctx
->
ctx
);
}
...
...
@@ -648,7 +648,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
if
(
org
->
ctx
==
NULL
)
{
ENTER_GL
();
describeContext
(
org
);
org
->
ctx
=
glXCreateContext
(
org
->
display
,
org
->
vis
,
NULL
,
True
);
org
->
ctx
=
glXCreateContext
(
org
->
display
,
org
->
vis
,
NULL
,
GetObjectType
(
org
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
LEAVE_GL
();
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p
\n
"
,
org
->
ctx
,
org
);
}
...
...
@@ -656,7 +656,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
ENTER_GL
();
describeContext
(
dest
);
/* Create the destination context with display lists shared */
dest
->
ctx
=
glXCreateContext
(
org
->
display
,
dest
->
vis
,
org
->
ctx
,
True
);
dest
->
ctx
=
glXCreateContext
(
org
->
display
,
dest
->
vis
,
org
->
ctx
,
GetObjectType
(
org
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
LEAVE_GL
();
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p sharing lists with OpenGL ctx %p
\n
"
,
dest
->
ctx
,
dest
,
org
->
ctx
);
return
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