opengl32: Update to the latest GL spec.
This commit is contained in:
parent
f061743a90
commit
abef41a983
|
@ -138,6 +138,10 @@ my %debug_conv =
|
||||||
"GLcharARB" => "%c",
|
"GLcharARB" => "%c",
|
||||||
"GLvoid" => "(void)",
|
"GLvoid" => "(void)",
|
||||||
"_GLfuncptr" => "%p",
|
"_GLfuncptr" => "%p",
|
||||||
|
"GLDEBUGPROCARB" => "%p",
|
||||||
|
"GLDEBUGPROCAMD" => "%p",
|
||||||
|
"GLvdpauSurfaceNV" => "%ld",
|
||||||
|
"INT64" => "%s,wine_dbgstr_longlong(%s)",
|
||||||
"UINT64" => "%s,wine_dbgstr_longlong(%s)"
|
"UINT64" => "%s,wine_dbgstr_longlong(%s)"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -186,7 +190,12 @@ sub ConvertType($)
|
||||||
"GLhandleARB" => "unsigned int",
|
"GLhandleARB" => "unsigned int",
|
||||||
"GLcharARB" => "char",
|
"GLcharARB" => "char",
|
||||||
"GLchar" => "char",
|
"GLchar" => "char",
|
||||||
"GLhalfNV" => "unsigned short" );
|
"GLhalfNV" => "unsigned short",
|
||||||
|
"GLvdpauSurfaceNV" => "INT_PTR",
|
||||||
|
"struct _cl_context" => "void",
|
||||||
|
"struct _cl_event" => "void",
|
||||||
|
"GLDEBUGPROCARB" => "void *",
|
||||||
|
"GLDEBUGPROCAMD" => "void *" );
|
||||||
|
|
||||||
foreach my $org (reverse sort keys %hash) {
|
foreach my $org (reverse sort keys %hash) {
|
||||||
if ($type =~ /$org/) {
|
if ($type =~ /$org/) {
|
||||||
|
@ -250,7 +259,7 @@ sub GenerateThunk($$$$$)
|
||||||
if ($type =~ /\*/) {
|
if ($type =~ /\*/) {
|
||||||
$trace_arg .= "%p";
|
$trace_arg .= "%p";
|
||||||
$trace_call_arg .= $name;
|
$trace_call_arg .= $name;
|
||||||
} else {
|
} elsif (defined $debug_conv{$type}) {
|
||||||
if ($debug_conv{$type} =~ /(.*),(.*)/)
|
if ($debug_conv{$type} =~ /(.*),(.*)/)
|
||||||
{
|
{
|
||||||
$trace_arg .= $1;
|
$trace_arg .= $1;
|
||||||
|
@ -262,6 +271,7 @@ sub GenerateThunk($$$$$)
|
||||||
$trace_call_arg .= $name;
|
$trace_call_arg .= $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else { printf "Unknown type %s\n", $type; }
|
||||||
if ($i+1 < @{$func_ref->[2]}) {
|
if ($i+1 < @{$func_ref->[2]}) {
|
||||||
$ret .= ", ";
|
$ret .= ", ";
|
||||||
$call_arg .= ", ";
|
$call_arg .= ", ";
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue