aboutsummaryrefslogtreecommitdiffstats
path: root/progs/slang/vstest.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2006-05-30 09:38:16 +0000
committerMichal Krol <[email protected]>2006-05-30 09:38:16 +0000
commit23b7c7dc1469ba5bbd14f736a3c188c63cd4f280 (patch)
treed56b43599a3f39ad6ec2f073e91247733b15c55d /progs/slang/vstest.c
parent44d5c8668a43fc06115ea83554bb2249ea4d2c6f (diff)
Make it running under Linux.
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 95d2ed6b83b..e31f3b16dfb 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);