Commit 313486b0 authored by slevy's avatar slevy
Browse files

Compile even if GLEW library not present. Stub out the shader functions.

parent 5c81de5a
......@@ -5,6 +5,26 @@
#include <string.h>
#include <errno.h>
#include "geometry.h"
#include "partiviewc.h" // for msg()
#if ! HAVE_LIBGLEW
int shader_parse_args( struct stuff **, int argc, char *argv[], char *fromfname, void * )
{
if(argc>0 && !strcmp(argv[0], "shader"))
msg("Must recompile partiview with GLEW library to use shaders");
return 0;
}
void initShaderStuff( bool GLready )
{
}
#else /* HAVE_LIBGLEW */
#define GL_GLEXT_PROTOTYPES 1 /* yes, of course we want glUseProgram etc. declared. */
#ifdef HAVE_LIBGLEW
......@@ -228,3 +248,4 @@ const char *useShader( const char *fname )
return reportShader();
}
#endif /* HAVE_LIBGLEW */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment