mojoshader_effects.c
changeset 1164 006194daea99
parent 1156 6e760a19f456
child 1165 0249808e3444
equal deleted inserted replaced
1163:c73c39a59dd4 1164:006194daea99
  1039         MOJOSHADER_effectObject *object = &effect->objects[i];
  1039         MOJOSHADER_effectObject *object = &effect->objects[i];
  1040         if (object->type == MOJOSHADER_SYMTYPE_PIXELSHADER
  1040         if (object->type == MOJOSHADER_SYMTYPE_PIXELSHADER
  1041          || object->type == MOJOSHADER_SYMTYPE_VERTEXSHADER)
  1041          || object->type == MOJOSHADER_SYMTYPE_VERTEXSHADER)
  1042         {
  1042         {
  1043             if (object->shader.is_preshader)
  1043             if (object->shader.is_preshader)
  1044                 MOJOSHADER_freePreshader(object->shader.preshader, f, d);
  1044                 MOJOSHADER_freePreshader(object->shader.preshader);
  1045             else
  1045             else
  1046                 MOJOSHADER_freeParseData(object->shader.shader);
  1046                 MOJOSHADER_freeParseData(object->shader.shader);
  1047             f((void *) object->shader.params, d);
  1047             f((void *) object->shader.params, d);
  1048             f((void *) object->shader.samplers, d);
  1048             f((void *) object->shader.samplers, d);
  1049             f((void *) object->shader.preshader_params, d);
  1049             f((void *) object->shader.preshader_params, d);