static void parse_uniform_name( char *start, struct uniform *uf )
{
uf->array = 0;
+ int type_set = 0;
+
for( int i=0;; i++ )
{
if( start[i] == '\0' )
if( start[i] == ' ' )
{
start[i] = '\0';
- strncpy( uf->type, start, sizeof(uf->type) );
+
+ if( !type_set )
+ {
+ strncpy( uf->type, start, sizeof(uf->type) );
+ type_set = 1;
+ }
start = start+i+1;
i=0;
}
else
{
fprintf( header, "{\n"
- ".static_src = \n" );
+ ".orig_file = \"%s\",\n"
+ ".static_src = \n",
+ name );
char *cur = full, *start = full;
while( 1 )
for( int i=0; i<vg_shaderbuild.uniform_count; i++ )
{
struct uniform *uf = &vg_shaderbuild.uniform_buffer[i];
- if( uf->array ) continue;
+ if( uf->array )
+ continue;
for( int j=0; j<vg_list_size(types); j ++ )
{