Commit 49f94bab authored by Robert Menzel's avatar Robert Menzel

attribzte devisor is also available on ES

parent 472edd4d
......@@ -289,11 +289,11 @@ void VertexArrayObject::setAttributePointer( GLuint _index )
reinterpret_cast<GLvoid*>(arrayBufferAttribute.offset)
);
}
#if (ACGL_OPENGL_VERSION >= 33)
#if ((ACGL_OPENGL_VERSION >= 33) || (ACGL_OPENGLES_VERSION >= 30))
glVertexAttribDivisor( _index, arrayBufferAttribute.divisor );
#else
if(arrayBufferAttribute.divisor > 0)
warning() << "Attribute divisors are not supported in OpenGL < 3.3" << std::endl;
warning() << "Attribute divisors are not supported in OpenGL < 3.3 or OpenGL ES < 3.0" << std::endl;
#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