Fixed a warning on Linux

This commit is contained in:
jpaana 2004-06-18 22:06:45 +00:00
parent 7e73a7f5f4
commit c88af5d0b5

View file

@ -475,7 +475,7 @@ void GL2_CreateShaders()
}
len = strlen(shader);
qglShaderSourceARB(vertex_shaders[i], 1, &shader, &len);
qglShaderSourceARB(vertex_shaders[i], 1, (const GLcharARB **)&shader, &len);
GL2_checkerror();
shader = COM_LoadTempFile(fragment_programs[i]);
@ -485,7 +485,7 @@ void GL2_CreateShaders()
Sys_Error("GL2: %s not found\n", fragment_programs[i]);
}
len = strlen(shader);
qglShaderSourceARB(fragment_shaders[i], 1, &shader, &len);
qglShaderSourceARB(fragment_shaders[i], 1, (const GLcharARB **)&shader, &len);
GL2_checkerror();
qglCompileShaderARB(vertex_shaders[i]);