mojoshader_effects.c
changeset 1183 ec44ee868688
parent 1173 4b2f745c643b
child 1185 7ff14b0252a0
--- a/mojoshader_effects.c	Fri May 04 17:45:20 2018 -0400
+++ b/mojoshader_effects.c	Fri Feb 03 12:52:10 2017 -0500
@@ -745,7 +745,6 @@
                  */
                 object->shader.is_preshader = 1;
                 const uint32 start = *((uint32 *) *ptr) + 4;
-                const uint32 end = 16; // FIXME: Why? -flibit
                 const char *array = readstring(*ptr, 0, m, d);
                 object->shader.param_count = 1;
                 object->shader.params = (uint32 *) m(sizeof (uint32), d);
@@ -753,7 +752,7 @@
                                                          effect->param_count,
                                                          array);
                 f((void *) array, d);
-                object->shader.preshader = MOJOSHADER_parsePreshader(*ptr + start, length - end,
+                object->shader.preshader = MOJOSHADER_parsePreshader(*ptr + start, length,
                                                                      m, f, d);
                 // !!! FIXME: check for errors.
                 object->shader.preshader_param_count = object->shader.preshader->symbol_count;