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(); } +