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
8c178113
Commit
8c178113
authored
Oct 06, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Avoid calling back the wglMakeCurrent win32 thunk.
parent
b003fa79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
unix_wgl.c
dlls/opengl32/unix_wgl.c
+21
-21
No files found.
dlls/opengl32/unix_wgl.c
View file @
8c178113
...
...
@@ -483,27 +483,6 @@ static HGLRC wrap_wglCreateContext( HDC hdc )
return
ret
;
}
static
BOOL
wrap_wglDeleteContext
(
HGLRC
hglrc
)
{
struct
wgl_handle
*
ptr
=
get_handle_ptr
(
hglrc
,
HANDLE_CONTEXT
);
if
(
!
ptr
)
return
FALSE
;
if
(
ptr
->
u
.
context
->
tid
&&
ptr
->
u
.
context
->
tid
!=
GetCurrentThreadId
())
{
SetLastError
(
ERROR_BUSY
);
release_handle_ptr
(
ptr
);
return
FALSE
;
}
if
(
hglrc
==
NtCurrentTeb
()
->
glCurrentRC
)
wglMakeCurrent
(
0
,
0
);
ptr
->
funcs
->
wgl
.
p_wglDeleteContext
(
ptr
->
u
.
context
->
drv_ctx
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
->
disabled_exts
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
->
extensions
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
);
free_handle_ptr
(
ptr
);
return
TRUE
;
}
static
BOOL
wrap_wglMakeCurrent
(
HDC
hdc
,
HGLRC
hglrc
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -547,6 +526,27 @@ static BOOL wrap_wglMakeCurrent( HDC hdc, HGLRC hglrc )
return
ret
;
}
static
BOOL
wrap_wglDeleteContext
(
HGLRC
hglrc
)
{
struct
wgl_handle
*
ptr
=
get_handle_ptr
(
hglrc
,
HANDLE_CONTEXT
);
if
(
!
ptr
)
return
FALSE
;
if
(
ptr
->
u
.
context
->
tid
&&
ptr
->
u
.
context
->
tid
!=
GetCurrentThreadId
())
{
SetLastError
(
ERROR_BUSY
);
release_handle_ptr
(
ptr
);
return
FALSE
;
}
if
(
hglrc
==
NtCurrentTeb
()
->
glCurrentRC
)
wrap_wglMakeCurrent
(
0
,
0
);
ptr
->
funcs
->
wgl
.
p_wglDeleteContext
(
ptr
->
u
.
context
->
drv_ctx
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
->
disabled_exts
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
->
extensions
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
->
u
.
context
);
free_handle_ptr
(
ptr
);
return
TRUE
;
}
static
BOOL
wrap_wglShareLists
(
HGLRC
hglrcSrc
,
HGLRC
hglrcDst
)
{
BOOL
ret
=
FALSE
;
...
...
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