Skip to content
Permalink
Browse files
[svn] Update testparse for renames.
--HG--
branch : trunk
  • Loading branch information
icculus committed Mar 22, 2008
1 parent 460e94c commit 89fa5ce189f6acc7563a73f1d27d32700ac650c1
Showing with 5 additions and 2 deletions.
  1. +5 −2 testparse.c
@@ -1,9 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "d3d2glsl.h"
#include "mojoshader.h"

int main(int argc, char **argv)
{
printf("Compiled against version %d\n", MOJOSHADER_VERSION);
printf("Linked against version %d\n", MOJOSHADER_version());

if (argv[1] != NULL)
{
FILE *io = fopen(argv[1], "rb");
@@ -12,7 +15,7 @@ int main(int argc, char **argv)
unsigned char *buf = (unsigned char *) malloc(1000000);
int rc = fread(buf, 1, 1000000, io);
fclose(io);
D3D2GLSL_parse("d3d", buf, rc, NULL, NULL);
MOJOSHADER_parse("d3d", buf, rc, NULL, NULL);
free(buf);
} // if
} // if

0 comments on commit 89fa5ce

Please sign in to comment.