From 3793f6008f7b8b1f4abb38953f4ebe931484395e Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 14 Mar 2016 08:26:01 -0600 Subject: demos: Fix typo in tri.c that prevented validate arg from working correctly Change-Id: I8562e601c27e2413071f47ed97fe5ffd9f46bd07 --- demos/tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/tri.c b/demos/tri.c index 63e9dfd9..24d90b64 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -2256,7 +2256,7 @@ static void demo_init(struct demo *demo, const int argc, const char *argv[]) if (strncmp(pCmdLine, "--use_staging", strlen("--use_staging")) == 0) demo->use_staging_buffer = true; else if (strncmp(pCmdLine, "--validate", strlen("--validate")) == 0) - demo->use_staging_buffer = true; + demo->validate = true; else if (strlen(pCmdLine) != 0) { fprintf(stderr, "Do not recognize argument \"%s\".\n", pCmdLine); argv_error = true; -- cgit v1.2.3