From 22ce937d76deb6b2f0a6ec1275f2878e07f8a248 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Wed, 11 Feb 2015 09:36:41 -0700 Subject: tests demos: Fix pDataSize to be either unitinitalized or initialized. Better tests tracing in uninit case and was a bug in the case where init was added. --- demos/tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/tri.c b/demos/tri.c index ee2fe341..74ba8951 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -512,7 +512,7 @@ static void demo_prepare_textures(struct demo *demo) .arraySlice = 0, }; XGL_SUBRESOURCE_LAYOUT layout; - size_t layout_size; + size_t layout_size = sizeof(XGL_SUBRESOURCE_LAYOUT); void *data; int32_t x, y; -- cgit v1.2.3