summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-24 09:13:14 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-24 13:11:05 -0700
commited225446588a145879e21ae4d4e3440fcc2d11ca (patch)
treee96efacf6736da37efe95515254a3049c5b2857d
parent891cf754b3c6d624cd5f29d04033831adde59848 (diff)
mesa: copy precision/variant/centroid info in slang_fully_specified_type_copy()
-rw-r--r--src/mesa/shader/slang/slang_compile_variable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile_variable.c b/src/mesa/shader/slang/slang_compile_variable.c
index 37fb2eedb1..abe9c55d79 100644
--- a/src/mesa/shader/slang/slang_compile_variable.c
+++ b/src/mesa/shader/slang/slang_compile_variable.c
@@ -122,6 +122,9 @@ slang_fully_specified_type_copy(slang_fully_specified_type * x,
if (!slang_fully_specified_type_construct(&z))
return 0;
z.qualifier = y->qualifier;
+ z.precision = y->precision;
+ z.variant = y->variant;
+ z.centroid = y->centroid;
if (!slang_type_specifier_copy(&z.specifier, &y->specifier)) {
slang_fully_specified_type_destruct(&z);
return 0;