summaryrefslogtreecommitdiffstats
path: root/progs/slang/cltest.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/cltest.c
parent44d5c8668a43fc06115ea83554bb2249ea4d2c6f (diff)
Make it running under Linux.
Diffstat (limited to 'progs/slang/cltest.c')
-rw-r--r--progs/slang/cltest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/slang/cltest.c b/progs/slang/cltest.c
index 5736f3eab10..2753f59f85b 100644
--- a/progs/slang/cltest.c
+++ b/progs/slang/cltest.c
@@ -76,8 +76,8 @@ static void load_test_file (const char *filename, struct PROGRAM **program)
struct PROGRAM **currprog = program;
FILE *f;
char line[256];
- enum PROGRAM_LOAD_STATE pls;
- enum SHADER_LOAD_STATE sls;
+ enum PROGRAM_LOAD_STATE pls = PLS_NONE;
+ enum SHADER_LOAD_STATE sls = SLS_NONE;
f = fopen (filename, "r");
if (f == NULL)
@@ -174,7 +174,7 @@ void RenderScene (void)
exit (0);
code = program->vertex.code;
- glShaderSourceARB (vert, 1, &code, NULL);
+ glShaderSourceARB (vert, 1, (const GLcharARB **) (&code), NULL);
glCompileShaderARB (vert);
CheckObjectStatus (vert);