Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL shader problem

Started by Shawn619 Apr 14, 2012 at 11:19 PM 0 replies 950+ views
Original Post
Shawn619
Shawn619
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 ->
21k0bw2.jpg
If it helps, here's my .exe directory ->
10f80m8.jpg
tanzanite7
tanzanite7
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)?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.