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
2abeb763
Commit
2abeb763
authored
Oct 10, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Remove no longer used support for generating thread-safe thunks.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17dffaac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
25 deletions
+4
-25
make_opengl
dlls/opengl32/make_opengl
+4
-25
No files found.
dlls/opengl32/make_opengl
View file @
2abeb763
...
...
@@ -67,10 +67,6 @@ my $ext_file = "opengl_ext.c";
my
$wgl_driver_file
=
"../../include/wine/wgl_driver.h"
;
my
$wgl_file
=
"../../include/wine/wgl.h"
;
# Set to 0 for removing the ENTER / LEAVE GL calls
my
$gen_thread_safe
=
0
;
# Prefix used for the local variables
my
$ext_prefix
=
"func_"
;
# If set to 1, generate TRACEs for each OpenGL function
my
$gen_traces
=
1
;
...
...
@@ -299,9 +295,6 @@ sub GenerateThunk($$$)
return
"$ret) DECLSPEC_HIDDEN;\n"
if
$name
eq
"glGetStringi"
;
$ret
.=
") {\n"
;
$ret
.=
" const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;\n"
;
if
(
$func_ref
->
[
0
]
ne
"void"
&&
$gen_thread_safe
)
{
$ret
.=
" "
.
ConvertType
(
$func_ref
->
[
0
])
.
" ret_value;\n"
;
}
if
(
$gen_traces
)
{
$ret
.=
" TRACE(\"($trace_arg)\\n\""
;
if
(
$trace_arg
ne
""
)
{
...
...
@@ -309,25 +302,11 @@ sub GenerateThunk($$$)
}
$ret
.=
");\n"
;
}
if
(
$gen_thread_safe
)
{
$ret
.=
" ENTER_GL();\n"
;
$ret
.=
" "
;
if
(
$func_ref
->
[
0
]
ne
"void"
)
{
$ret
.=
"ret_value = "
;
}
$ret
.=
"funcs->$prefix.p_$name( $call_arg);\n"
;
$ret
.=
" LEAVE_GL();\n"
;
if
(
$func_ref
->
[
0
]
ne
"void"
)
{
$ret
.=
" return ret_value;\n"
}
}
else
{
$ret
.=
" "
;
if
(
$func_ref
->
[
0
]
ne
"void"
)
{
$ret
.=
"return "
;
}
$ret
.=
"funcs->$prefix.p_$name( $call_arg);\n"
;
$ret
.=
" "
;
if
(
$func_ref
->
[
0
]
ne
"void"
)
{
$ret
.=
"return "
;
}
$ret
.=
"funcs->$prefix.p_$name( $call_arg);\n"
;
$ret
.=
"}\n"
;
# Return this string....
...
...
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