Corrected out of memory error position.
--- a/mojoshader.c Sun May 22 01:22:36 2011 -0400
+++ b/mojoshader.c Sun May 22 01:27:04 2011 -0400
@@ -242,7 +242,10 @@
void MOJOSHADER_internal_free(void *ptr, void *d) { free(ptr); }
#endif
-MOJOSHADER_error MOJOSHADER_out_of_mem_error = { "Out of memory", NULL, -1 };
+MOJOSHADER_error MOJOSHADER_out_of_mem_error = {
+ "Out of memory", NULL, MOJOSHADER_POSITION_NONE
+};
+
MOJOSHADER_parseData MOJOSHADER_out_of_mem_data = {
1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0,
MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0