diff options
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicscontext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp index 1f70a426b..daa1d1e02 100644 --- a/src/render/graphicshelpers/graphicscontext.cpp +++ b/src/render/graphicshelpers/graphicscontext.cpp @@ -1051,9 +1051,9 @@ void GraphicsContext::specifyAttribute(const Attribute *attribute, Buffer *buffe } prog->enableAttributeArray(location); prog->setAttributeBuffer(location, - glDataTypeFromAttributeDataType(attribute->dataType()), + glDataTypeFromAttributeDataType(attribute->vertexBaseType()), attribute->byteOffset(), - attribute->dataSize(), + attribute->vertexSize(), attribute->byteStride()); if (attribute->divisor() != 0) { @@ -1202,7 +1202,7 @@ GLuint GraphicsContext::byteSizeFromType(GLint type) return 0; } -GLint GraphicsContext::glDataTypeFromAttributeDataType(QAttribute::DataType dataType) +GLint GraphicsContext::glDataTypeFromAttributeDataType(QAttribute::VertexBaseType dataType) { switch (dataType) { case QAttribute::Byte: |