mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-23 20:49:08 +02:00
Addressing the bug on Mac AMD
This commit is contained in:
parent
da6e399161
commit
702d26d2bd
1 changed files with 10 additions and 0 deletions
|
@ -244,6 +244,16 @@ ModelMeshPartPayload::ModelMeshPartPayload(ModelPointer model, int meshIndex, in
|
||||||
_blendshapeBuffer = buffer->second;
|
_blendshapeBuffer = buffer->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
// On mac AMD, we specifically need to have a _blendshapeBuffer bound when using a deformed mesh pipeline
|
||||||
|
// it cannot be null otherwise we crash in the drawcall using a deformed pipeline with a skinned only (not blendshaped) mesh
|
||||||
|
if ((_isBlendShaped || _isSkinned) && !_blendshapeBuffer) {
|
||||||
|
glm::vec4 data;
|
||||||
|
_blendshapeBuffer = std::make_shared<gpu::Buffer>(sizeof(glm::vec4), reinterpret_cast<const Byte*>(data));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelMeshPartPayload::initCache(const ModelPointer& model) {
|
void ModelMeshPartPayload::initCache(const ModelPointer& model) {
|
||||||
|
|
Loading…
Reference in a new issue