From 478857f14952686bee3f8ac3a702301f253d1648 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Thu, 1 Jun 2023 20:24:14 +0200 Subject: [PATCH] Quad texture coords are never interpolated, make those a normal Vector --- BBGE/Quad.cpp | 6 ------ BBGE/Quad.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/BBGE/Quad.cpp b/BBGE/Quad.cpp index 8f820ff..5d67bef 100644 --- a/BBGE/Quad.cpp +++ b/BBGE/Quad.cpp @@ -643,12 +643,6 @@ void Quad::onUpdate(float dt) else if (autoHeight == AUTO_VIRTUALHEIGHT) height = core->getVirtualHeight(); - - refreshRepeatTextureToFill(); - - lowerRightTextureCoordinates.update(dt); - upperLeftTextureCoordinates.update(dt); - if (!drawGrid.empty() && alpha.x > 0 && alphaMod > 0) { updateGrid(dt); diff --git a/BBGE/Quad.h b/BBGE/Quad.h index bd4f89b..0fcfa37 100644 --- a/BBGE/Quad.h +++ b/BBGE/Quad.h @@ -72,7 +72,7 @@ public: void deleteGrid(); - InterpolatedVector upperLeftTextureCoordinates, lowerRightTextureCoordinates; + Vector upperLeftTextureCoordinates, lowerRightTextureCoordinates; enum GridDrawOrder {