From 096e61296f1974bdca7a02fd5d4caf0203e2fbb2 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 6 Jan 2015 09:24:44 -0700 Subject: loader: Fix WsiX11CreatePresentableImage to set dispatch table for image This one has two object output parameters, dispatch table for both must be set. --- xgl-generate.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xgl-generate.py b/xgl-generate.py index 99bd5047..efad4569 100755 --- a/xgl-generate.py +++ b/xgl-generate.py @@ -126,9 +126,15 @@ class LoaderSubcommand(Subcommand): " const XGL_LAYER_DISPATCH_TABLE **disp =\n" " (const XGL_LAYER_DISPATCH_TABLE **) %s;\n" " XGL_RESULT res = %s;\n" + % (qual, decl, proto.params[0].name, stmt)) + if proto.name == "WsiX11CreatePresentableImage": + funcs.append( + " *(const XGL_LAYER_DISPATCH_TABLE **) (*%s) = *disp;\n" + % ( proto.params[-2].name)) + funcs.append( " *(const XGL_LAYER_DISPATCH_TABLE **) (*%s) = *disp;\n" " return res;\n" - "}" % (qual, decl, proto.params[0].name, stmt, proto.params[-1].name)) + "}" % ( proto.params[-1].name)) elif proto.name == "GetMultiGpuCompatibility": funcs.append("%s%s\n" "{\n" -- cgit v1.2.3