mojoshader_assembler.c
changeset 956 7888858a6777
parent 948 6423e569624c
child 994 561ee5138f4e
equal deleted inserted replaced
955:9315c168a97a 956:7888858a6777
  1648     if (isfail(ctx))
  1648     if (isfail(ctx))
  1649         return build_failed_assembly(ctx);
  1649         return build_failed_assembly(ctx);
  1650 
  1650 
  1651     // get the final bytecode!
  1651     // get the final bytecode!
  1652     const unsigned int output_len = (unsigned int) buffer_size(ctx->output);
  1652     const unsigned int output_len = (unsigned int) buffer_size(ctx->output);
  1653     unsigned char *bytecode = buffer_flatten(ctx->output);
  1653     unsigned char *bytecode = (unsigned char *) buffer_flatten(ctx->output);
  1654     buffer_destroy(ctx->output);
  1654     buffer_destroy(ctx->output);
  1655     ctx->output = NULL;
  1655     ctx->output = NULL;
  1656 
  1656 
  1657     if (bytecode == NULL)
  1657     if (bytecode == NULL)
  1658         return build_failed_assembly(ctx);
  1658         return build_failed_assembly(ctx);