Merge pull request #1407 from HifiExperiments/fontAssert
Some checks are pending
Master API-docs CI Build and Deploy / Build and deploy API-docs (push) Waiting to run
Master Doxygen CI Build and Deploy / Build and deploy Doxygen documentation (push) Waiting to run

fix font assert
This commit is contained in:
ksuprynowicz 2025-04-06 23:46:17 +02:00 committed by GitHub
commit 1e07398dc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -378,7 +378,7 @@ void Font::setupGPU() {
static const int TEX_BOUNDS_OFFSET = offsetof(TextureVertex, bounds);
static const int TOFU_OFFSET = offsetof(TextureVertex, isTofu);
assert(TEX_COORD_OFFSET == sizeof(glm::vec2));
assert(sizeof(TextureVertex) == 2 * sizeof(glm::vec2) + sizeof(glm::vec4));
assert(sizeof(TextureVertex) == 2 * sizeof(glm::vec2) + sizeof(glm::vec4) + sizeof(float));
assert(sizeof(QuadBuilder) == 4 * sizeof(TextureVertex));
// Setup rendering structures