Error with shaders - OpenGL

Started by
19 comments, last by sn0k3 8 years, 7 months ago

I found the error!

The error wasn't because of shader, it was in main.cpp file..

The error was this:

    Shader shader("shaders/shader.vert", "shaders/shader.vert");

It was passed only vertex shader, and actually yes..The second shader was compiled as frag shader..

I fixed it:

    Shader shader("shaders/shader.vert", "shaders/shader.frag");

Thank you!

This topic is closed to new replies.

Advertisement