From cc98571a01f21def76c61716452688631d0785cc Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 6 Dec 2023 09:17:01 -0600 Subject: [PATCH] CLeaned up that last commit a bit. --- src/dawn/display/font/TrueTypeTexture.cpp | 3 +-- src/dawnhelloworld/scene/HelloWorldScene.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dawn/display/font/TrueTypeTexture.cpp b/src/dawn/display/font/TrueTypeTexture.cpp index ffc7ee91..c3538fd4 100644 --- a/src/dawn/display/font/TrueTypeTexture.cpp +++ b/src/dawn/display/font/TrueTypeTexture.cpp @@ -133,7 +133,7 @@ struct TrueTypeCharacter TrueTypeTexture::getCharacterData(wchar_t c) { glm::vec2 TrueTypeTexture::bufferStringToMesh( std::shared_ptr mesh, const std::wstring text, - glm::vec2 position, + glm::vec2 &position, bool_t flipY ) { assertNotNull(mesh, "Mesh must be supplied and not null"); @@ -184,7 +184,6 @@ glm::vec2 TrueTypeTexture::bufferStringToMesh( position += info.advance; size += info.advance; - // Increment i i++; } diff --git a/src/dawnhelloworld/scene/HelloWorldScene.cpp b/src/dawnhelloworld/scene/HelloWorldScene.cpp index b7a15edd..0fea2832 100644 --- a/src/dawnhelloworld/scene/HelloWorldScene.cpp +++ b/src/dawnhelloworld/scene/HelloWorldScene.cpp @@ -36,7 +36,7 @@ void Dawn::helloWorldScene(Scene &s) { quadMesh, L"Hello World!", position, - true + true ); auto quadRenderer = quad->addComponent();