mesa: copy precision/variant/centroid info in slang_fully_specified_type_copy()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 24 Nov 2008 16:13:14 +0000 (09:13 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 24 Nov 2008 16:13:14 +0000 (09:13 -0700)
src/mesa/shader/slang/slang_compile_variable.c

index 37fb2eedb1f625c2e918bd765a6d9a9c30989c4d..abe9c55d799741f1e7dfcff4e55e6a040a8122ae 100644 (file)
@@ -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;