#ifndef _OpenGl_VertexBuffer_H__
#define _OpenGl_VertexBuffer_H__
-#include <OpenGl_GlCore20.hxx>
+#include <OpenGl_GlCore32.hxx>
#include <OpenGl_Resource.hxx>
#include <OpenGl_Context.hxx>
#include <OpenGl_ShaderProgram.hxx>
}
theCtx->core20fwd->glEnableVertexAttribArray (theAttribute);
- theCtx->core20fwd->glVertexAttribPointer (theAttribute, theNbComp, theDataType, theDataType != GL_FLOAT, theStride, theOffset);
+ if (theDataType == GL_UNSIGNED_INT
+ && theCtx->core32 != NULL)
+ {
+ theCtx->core32->glVertexAttribIPointer (theAttribute, theNbComp, theDataType, theStride, theOffset);
+ }
+ else
+ {
+ theCtx->core20fwd->glVertexAttribPointer (theAttribute, theNbComp, theDataType, theDataType != GL_FLOAT, theStride, theOffset);
+ }
}
#if !defined(GL_ES_VERSION_2_0)