Need the ARB suffix on this. I'm surprised it compiled for me!

This commit is contained in:
Andrzej Kapolka 2013-05-08 15:05:35 -07:00
parent 1c8b835bb8
commit 1f58e28b36

View file

@ -18,7 +18,7 @@ ShaderObject::~ShaderObject() {
}
bool ShaderObject::compileSourceCode(const char* data) {
glShaderSource(_handle, 1, &data, 0);
glShaderSourceARB(_handle, 1, &data, 0);
glCompileShaderARB(_handle);
int status;
glGetObjectParameterivARB(_handle, GL_OBJECT_COMPILE_STATUS_ARB, &status);