I tried implementing a shader into my program.
The shader is from an example program from http://www.swiftless...g_perpixel.html
I included all the necessary files, shader.cpp, shadder.h, i have shader.vert and shader.frap in the appropriate directories. Also i have glew32.lib linked appropriately as well, just as in the example on the website.
Running my program, i get this error ->
If it helps, here's my .exe directory ->
OpenGL shader problem
glCreateShader needs to be loaded by glew ... where is your glewInit()? It must be called before you can call any of the newer functions like glCreateShader. Also, are you sure your GPU drivers support it (most likely supported with every non-ancient cards and non ancient drivers)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement