mojoshader.c
changeset 802 6d1674f192d2
parent 798 5dd67cc04cf9
child 803 cfd14c5f187a
equal deleted inserted replaced
801:6f9625737d41 802:6d1674f192d2
  7632         return &MOJOSHADER_out_of_mem_data;  // supply both or neither.
  7632         return &MOJOSHADER_out_of_mem_data;  // supply both or neither.
  7633 
  7633 
  7634     ctx = build_context(profile, tokenbuf, bufsize, swiz, swizcount, m, f, d);
  7634     ctx = build_context(profile, tokenbuf, bufsize, swiz, swizcount, m, f, d);
  7635     if (ctx == NULL)
  7635     if (ctx == NULL)
  7636         return &MOJOSHADER_out_of_mem_data;
  7636         return &MOJOSHADER_out_of_mem_data;
       
  7637 	
       
  7638     if (isfail(ctx))
       
  7639     {
       
  7640         retval = build_parsedata(ctx);
       
  7641         destroy_context(ctx);
       
  7642         return retval;
       
  7643     }
  7637 
  7644 
  7638     verify_swizzles(ctx);
  7645     verify_swizzles(ctx);
  7639 
  7646 
  7640     // Version token always comes first.
  7647     // Version token always comes first.
  7641     ctx->parse_phase = MOJOSHADER_PARSEPHASE_WORKING;
  7648     ctx->parse_phase = MOJOSHADER_PARSEPHASE_WORKING;