mojoshader.c
changeset 1176 1356c2c32ef6
parent 1175 9a010116e353
child 1177 ba7a3f39add4
equal deleted inserted replaced
1175:9a010116e353 1176:1356c2c32ef6
 11167         errorlist_destroy(ctx->errors);
 11167         errorlist_destroy(ctx->errors);
 11168         f(ctx, d);
 11168         f(ctx, d);
 11169         return NULL;
 11169         return NULL;
 11170     } // if
 11170     } // if
 11171 
 11171 
 11172     if (mainfn)
 11172     if (mainfn != NULL)
 11173         ctx->mainfn = StrDup(ctx, mainfn);
 11173     {
       
 11174         if (strlen(mainfn) > 55)  // !!! FIXME: just to keep things sane. Lots of hardcoded stack arrays...
       
 11175             failf(ctx, "Main function name '%s' is too big", mainfn);
       
 11176         else
       
 11177             ctx->mainfn = StrDup(ctx, mainfn);
       
 11178     } // if
 11174 
 11179 
 11175     if (profile != NULL)
 11180     if (profile != NULL)
 11176     {
 11181     {
 11177         const int profileid = find_profile_id(profile);
 11182         const int profileid = find_profile_id(profile);
 11178         ctx->profileid = profileid;
 11183         ctx->profileid = profileid;