summaryrefslogtreecommitdiffstats
path: root/src/runtime/dragon/geometry/dragonbuffervisitor_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/dragon/geometry/dragonbuffervisitor_p.h')
-rw-r--r--src/runtime/dragon/geometry/dragonbuffervisitor_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/dragon/geometry/dragonbuffervisitor_p.h b/src/runtime/dragon/geometry/dragonbuffervisitor_p.h
index 8526e38..70be1f1 100644
--- a/src/runtime/dragon/geometry/dragonbuffervisitor_p.h
+++ b/src/runtime/dragon/geometry/dragonbuffervisitor_p.h
@@ -95,7 +95,7 @@ public:
}
bool apply(const Attribute &attribute,
- const Buffer &attributeBuffer,
+ const LoadedBuffer &attributeBuffer,
int drawVertexCount)
{
if (attribute.vertexBaseType() != VertexBaseType)
@@ -103,7 +103,7 @@ public:
if (attribute.vertexSize() < dataSize)
return false;
- auto data = attributeBuffer.m_data;
+ auto data = attributeBuffer.data;
auto buffer = BufferTypeInfo::castToType<VertexBaseType>(data, attribute.byteOffset());
switch (dataSize) {
@@ -118,9 +118,9 @@ public:
}
bool apply(const Attribute &attribute,
- const Buffer &attributeBuffer,
+ const LoadedBuffer &attributeBuffer,
const Attribute &indexAttribute,
- const Buffer &indexBuffer,
+ const LoadedBuffer &indexBuffer,
int drawVertexCount,
bool primitiveRestartEnabled,
int primitiveRestartIndex)
@@ -130,10 +130,10 @@ public:
if (attribute.vertexSize() < dataSize)
return false;
- auto data = attributeBuffer.m_data;
+ auto data = attributeBuffer.data;
auto buffer = BufferTypeInfo::castToType<VertexBaseType>(data, attribute.byteOffset());
- auto indexData = indexBuffer.m_data;
+ auto indexData = indexBuffer.data;
if (indexAttribute.vertexBaseType() == QAttribute::UnsignedShort) {
auto indexBuffer = BufferTypeInfo::castToType<QAttribute::UnsignedShort>(indexData, indexAttribute.byteOffset());
switch (dataSize) {