summaryrefslogtreecommitdiffstats
path: root/progs/slang/vstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/slang/vstest.c')
-rw-r--r--progs/slang/vstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/slang/vstest.c b/progs/slang/vstest.c
index 95d2ed6..e31f3b1 100644
--- a/progs/slang/vstest.c
+++ b/progs/slang/vstest.c
@@ -210,7 +210,7 @@ static void dl_end ()
static void load_test_file (const char *filename)
{
FILE *f;
- long size;
+ GLint size;
char *code;
GLint i;
@@ -230,7 +230,7 @@ static void load_test_file (const char *filename)
size = fread (code, 1, size, f);
fclose (f);
- glShaderSourceARB (vert, 1, &code, &size);
+ glShaderSourceARB (vert, 1, (const GLcharARB **) (&code), &size);
glCompileShaderARB (vert);
if (!CheckObjectStatus (vert))
exit (0);