Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Corrected out of memory error position.
  • Loading branch information
icculus committed May 22, 2011
1 parent 8b57f37 commit 42c566c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mojoshader.c
Expand Up @@ -242,7 +242,10 @@ void *MOJOSHADER_internal_malloc(int bytes, void *d) { return malloc(bytes); }
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
Expand Down

0 comments on commit 42c566c

Please sign in to comment.