From 81af30d4c675639f3a7aceb639a686af071f1cc8 Mon Sep 17 00:00:00 2001 From: Yggdrasil75 Date: Fri, 16 Jan 2026 14:57:50 -0500 Subject: [PATCH] fix rgba issue --- tests/g3test2.cpp | 4 ++-- util/grid/grid3.hpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/g3test2.cpp b/tests/g3test2.cpp index c31c0d1..debe1ca 100644 --- a/tests/g3test2.cpp +++ b/tests/g3test2.cpp @@ -25,7 +25,7 @@ struct defaults { int outHeight = 512; int gridWidth = 512; int gridHeight = 512; - int gridDepth = 64; + int gridDepth = 512; float fps = 30.0f; PNoise2 noise = PNoise2(42); }; @@ -699,7 +699,7 @@ int main() { startAVIRecording(recordingDurationFrames); } } - + ImGui::End(); } diff --git a/util/grid/grid3.hpp b/util/grid/grid3.hpp index a2be471..42a811a 100644 --- a/util/grid/grid3.hpp +++ b/util/grid/grid3.hpp @@ -703,10 +703,10 @@ public: } switch (colorFormat) { case frame::colormap::RGBA: { - colorBuffer[pidx + 1] = cvColor.x; - colorBuffer[pidx + 2] = cvColor.y; - colorBuffer[pidx + 3] = cvColor.z; - colorBuffer[pidx + 0] = cvAlpha; + colorBuffer[pidx + 0] = cvColor.x; + colorBuffer[pidx + 1] = cvColor.y; + colorBuffer[pidx + 2] = cvColor.z; + colorBuffer[pidx + 3] = cvAlpha; break; } case frame::colormap::BGRA: {