Commit ecb88cd8b73307501ce7a89f79f33d4e1e054d5b
authorMichel Pollet <buserror@gmail.com>
Sat, 16 Jun 2012 08:09:45 +0000 (09:09 +0100)
committerMichel Pollet <buserror@gmail.com>
Sat, 16 Jun 2012 08:09:45 +0000 (09:09 +0100)
Somehow they were missing

Signed-off-by: Michel Pollet <buserror@gmail.com>
examples/shared/libc3/src/c3program.c

index 86e4404e00158da410f936cac7f7aa4f6d45d732..f045de85a8102d0157ee7c806a5f332b45f8cf92 100644 (file)
@@ -144,14 +144,14 @@ c3program_load_shader(
                        char * sep = line->str;
                        char * uniform = strsep(&sep, " \t");
                        char * unitype = strsep(&sep, " \t");
-                       char * uniname = strsep(&sep, " \t");
+                       char * uniname = strsep(&sep, " \t=;");
                        /*
                         * found a parameter, extract it's type & name
                         */
                        if (uniform && unitype && uniname) {
                                // trim semicolons etc
                                char *cl = uniname;
-                               while (isalpha(*cl) || *cl == '_')
+                               while (isalpha(*cl) || *cl == '_' || isdigit(*cl))
                                        cl++;
                                *cl = 0;
                                str_p name = str_new(uniname);