From e4febaa3ecb93bc90f9d1f52808a95ca60f3bab2 Mon Sep 17 00:00:00 2001 From: SorkoPiko Date: Wed, 11 Feb 2026 23:09:39 +1100 Subject: [PATCH] fix: remove exit() statement and redundant image counter logic --- src/platform/platform.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/platform/platform.cpp b/src/platform/platform.cpp index f045c38..348f216 100644 --- a/src/platform/platform.cpp +++ b/src/platform/platform.cpp @@ -64,12 +64,6 @@ bool GLRenderCtx::begin() { glGenTextures(1, &m_texture); glBindTexture(GL_TEXTURE_2D, m_texture); - static int texture_count = 0; - texture_count++; - if (texture_count > 100) { - exit(1); - } - glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, static_cast(m_size.x), @@ -116,3 +110,4 @@ void GLRenderCtx::end() { //glFlush(); } +