aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-01-06 09:24:44 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:03 -0700
commit096e61296f1974bdca7a02fd5d4caf0203e2fbb2 (patch)
treec242cabaa28a924f1c3a2d1a2c5c3abe9cb85279
parente249eb854657ed052b0eb87bfe4a8e354b543e42 (diff)
downloadusermoji-096e61296f1974bdca7a02fd5d4caf0203e2fbb2.tar.xz
loader: Fix WsiX11CreatePresentableImage to set dispatch table for image
This one has two object output parameters, dispatch table for both must be set.
-rwxr-xr-xxgl-generate.py8
1 files changed, 7 insertions, 1 deletions
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"