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
f2bd9917
Commit
f2bd9917
authored
Oct 05, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Consistently use $func instead of $func_ref.
parent
db2e56cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
make_opengl
dlls/opengl32/make_opengl
+14
-14
No files found.
dlls/opengl32/make_opengl
View file @
f2bd9917
...
...
@@ -224,28 +224,28 @@ sub get_func_args($$$)
#
sub
GenerateThunk
($$$)
{
my
(
$name
,
$func
_ref
,
$prefix
)
=
@_
;
my
$call_args
=
get_func_args
(
$func
_ref
,
0
,
0
);
my
(
$name
,
$func
,
$prefix
)
=
@_
;
my
$call_args
=
get_func_args
(
$func
,
0
,
0
);
my
$ret
=
get_func_proto
(
"%s WINAPI %s(%s)"
,
$name
,
$func
_ref
,
0
);
my
$ret
=
get_func_proto
(
"%s WINAPI %s(%s)"
,
$name
,
$func
,
0
);
$ret
.=
"\n{\n"
;
# special case for functions that take an HDC as first parameter
if
(
@
{
$func
_ref
->
[
1
]}
&&
get_arg_type
(
$
{
$func_ref
->
[
1
]}[
0
]
)
eq
"HDC"
)
if
(
@
{
$func
->
[
1
]}
&&
get_arg_type
(
$
{
$func
->
[
1
]}[
0
]
)
eq
"HDC"
)
{
my
$pname
=
get_arg_name
(
$
{
$func
_ref
->
[
1
]}[
0
]
);
my
$pname
=
get_arg_name
(
$
{
$func
->
[
1
]}[
0
]
);
$ret
.=
" const struct opengl_funcs *funcs = get_dc_funcs( $pname );\n"
;
$ret
.=
" "
.
get_func_trace
(
$name
,
$func
_ref
)
if
$gen_traces
;
$ret
.=
" "
.
get_func_trace
(
$name
,
$func
)
if
$gen_traces
;
$ret
.=
" if (!funcs || !funcs->$prefix.p_$name) return"
;
$ret
.=
" 0"
unless
is_void_func
(
$func
_ref
);
$ret
.=
" 0"
unless
is_void_func
(
$func
);
$ret
.=
";\n"
;
}
else
{
$ret
.=
" const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;\n"
;
$ret
.=
" "
.
get_func_trace
(
$name
,
$func
_ref
)
if
$gen_traces
;
$ret
.=
" "
.
get_func_trace
(
$name
,
$func
)
if
$gen_traces
;
}
$ret
.=
" "
;
$ret
.=
"return "
unless
is_void_func
(
$func
_ref
);
$ret
.=
"return "
unless
is_void_func
(
$func
);
$ret
.=
"funcs->$prefix.p_$name($call_args);\n"
;
$ret
.=
"}\n\n"
;
return
$ret
;
...
...
@@ -253,18 +253,18 @@ sub GenerateThunk($$$)
sub
generate_null_func
($$$)
{
my
(
$name
,
$func
_ref
,
$callconv
)
=
@_
;
my
(
$name
,
$func
,
$callconv
)
=
@_
;
my
$ret
;
return
""
if
$name
eq
"glDebugEntry"
;
$ret
=
get_func_proto
(
"static %s$callconv null_%s(%s)"
,
$name
,
$func
_ref
,
1
);
$ret
=
get_func_proto
(
"static %s$callconv null_%s(%s)"
,
$name
,
$func
,
1
);
$ret
.=
" {"
;
if
(
$name
eq
"glGetError"
)
{
$ret
.=
" return GL_INVALID_OPERATION;"
;
}
elsif
(
!
is_void_func
(
$func
_ref
))
elsif
(
!
is_void_func
(
$func
))
{
$ret
.=
" return 0;"
;
}
...
...
@@ -800,8 +800,8 @@ print EXT $wrappers;
print
EXT
"\nconst OpenGL_extension extension_registry[$count] = {\n"
;
my
$i
=
0
;
foreach
(
sort
keys
%
ext_functions
)
{
my
$func
_ref
=
$ext_functions
{
$_
};
printf
EXT
" { \"%s\", \"%s\", %s }"
,
$_
,
join
(
" "
,
sort
@
{
$func
_ref
->
[
2
]}),
$_
;
my
$func
=
$ext_functions
{
$_
};
printf
EXT
" { \"%s\", \"%s\", %s }"
,
$_
,
join
(
" "
,
sort
@
{
$func
->
[
2
]}),
$_
;
if
(
$i
!=
$count
-
1
)
{
print
EXT
","
;
}
...
...
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