From 38c6ef1d56b5542ae1484951fc12e59ac54d43b6 Mon Sep 17 00:00:00 2001 From: okuoku Date: Sat, 22 May 2021 01:18:26 +0900 Subject: [PATCH] Fix C sample code in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f6e7be0..7d8990b0 100644 --- a/README.md +++ b/README.md @@ -161,12 +161,12 @@ for (i = 0; i < count; i++) } // Modify options. -spvc_compiler_create_compiler_options(context, &options); +spvc_compiler_create_compiler_options(compiler_glsl, &options); spvc_compiler_options_set_uint(options, SPVC_COMPILER_OPTION_GLSL_VERSION, 330); spvc_compiler_options_set_bool(options, SPVC_COMPILER_OPTION_GLSL_ES, SPVC_FALSE); spvc_compiler_install_compiler_options(compiler_glsl, options); -spvc_compiler_compile(compiler, &result); +spvc_compiler_compile(compiler_glsl, &result); printf("Cross-compiled source: %s\n", result); // Frees all memory we allocated so far.