Skip to content

Commit e4febaa

Browse files
authored
fix: remove exit() statement and redundant image counter logic
1 parent 8fbee72 commit e4febaa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/platform/platform.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ bool GLRenderCtx::begin() {
6464
glGenTextures(1, &m_texture);
6565
glBindTexture(GL_TEXTURE_2D, m_texture);
6666

67-
static int texture_count = 0;
68-
texture_count++;
69-
if (texture_count > 100) {
70-
exit(1);
71-
}
72-
7367
glTexImage2D(
7468
GL_TEXTURE_2D, 0, GL_RGB,
7569
static_cast<GLsizei>(m_size.x),
@@ -116,3 +110,4 @@ void GLRenderCtx::end() {
116110
//glFlush();
117111
}
118112

113+

0 commit comments

Comments
 (0)