From 7a728b394f8af42b919d4a47b3eaf1e701a42c08 Mon Sep 17 00:00:00 2001 From: Nelson Gomez Date: Mon, 21 Oct 2024 04:36:55 -0700 Subject: [PATCH] Fix broken output on the debug window --- scgl/ext/cGDriver_Snapshot.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scgl/ext/cGDriver_Snapshot.cpp b/scgl/ext/cGDriver_Snapshot.cpp index 2406015..e1eb051 100644 --- a/scgl/ext/cGDriver_Snapshot.cpp +++ b/scgl/ext/cGDriver_Snapshot.cpp @@ -83,6 +83,10 @@ namespace nSCGL buffer->Unlock(cIGZBuffer::eLockFlags::IsDirtyUpdate); } +#ifndef NDEBUG + glPixelStorei(GL_PACK_ALIGNMENT, 4); +#endif + delete[] colorBytes; return buffer; }