Commit 0b0ba963 authored by Janis Born's avatar Janis Born

warn when using an attribute divisor on an AB on OpenGL < 3.3

parent ce0e3894
......@@ -229,6 +229,9 @@ void VertexArrayObject::setAttributePointer( GLuint _index )
}
#if (ACGL_OPENGL_VERSION >= 33)
glVertexAttribDivisor( _index, arrayBufferAttribute.divisor );
#else
if(arrayBufferAttribute.divisor > 0)
warning() << "Attribute divisors are not supported in OpenGL < 3.3";
#endif
glEnableVertexAttribArray(_index);
}
......
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