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
f36536f7
Commit
f36536f7
authored
Aug 23, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Properly update the hdc in the GL context.
parent
9a2d605d
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 @
f36536f7
...
...
@@ -1662,6 +1662,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
NtCurrentTeb
()
->
glContext
=
ctx
;
if
(
ret
)
{
ctx
->
hdc
=
hdc
;
ctx
->
physDev
=
physDev
;
ctx
->
pReadDev
=
physDev
;
...
...
@@ -1712,6 +1713,7 @@ BOOL X11DRV_wglMakeContextCurrentARB(X11DRV_PDEVICE* pDrawDev, X11DRV_PDEVICE* p
ctx
->
ctx
=
pglXCreateContext
(
gdi_display
,
ctx
->
vis
,
NULL
,
GetObjectType
(
pDrawDev
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
TRACE
(
" created a delayed OpenGL context (%p)
\n
"
,
ctx
->
ctx
);
}
ctx
->
hdc
=
pDrawDev
->
hdc
;
ctx
->
physDev
=
pDrawDev
;
ctx
->
pReadDev
=
pReadDev
;
ret
=
pglXMakeContextCurrent
(
gdi_display
,
d_draw
,
d_read
,
ctx
->
ctx
);
...
...
@@ -1749,7 +1751,7 @@ BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
describeContext
(
org
);
if
(
org
->
vis
)
org
->
ctx
=
pglXCreateContext
(
gdi_display
,
org
->
vis
,
NULL
,
GetObjectType
(
org
->
physDev
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
org
->
ctx
=
pglXCreateContext
(
gdi_display
,
org
->
vis
,
NULL
,
GetObjectType
(
org
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
else
/* Create a GLX Context for a pbuffer */
org
->
ctx
=
pglXCreateNewContext
(
gdi_display
,
org
->
fmt
->
fbconfig
,
org
->
fmt
->
render_type
,
NULL
,
True
);
wine_tsx11_unlock
();
...
...
@@ -1760,7 +1762,7 @@ BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
describeContext
(
dest
);
/* Create the destination context with display lists shared */
if
(
dest
->
vis
)
dest
->
ctx
=
pglXCreateContext
(
gdi_display
,
dest
->
vis
,
org
->
ctx
,
GetObjectType
(
org
->
physDev
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
dest
->
ctx
=
pglXCreateContext
(
gdi_display
,
dest
->
vis
,
org
->
ctx
,
GetObjectType
(
org
->
hdc
)
==
OBJ_MEMDC
?
False
:
True
);
else
/* Create a GLX Context for a pbuffer */
dest
->
ctx
=
pglXCreateNewContext
(
gdi_display
,
dest
->
fmt
->
fbconfig
,
dest
->
fmt
->
render_type
,
org
->
ctx
,
True
);
wine_tsx11_unlock
();
...
...
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