From c1f51ef7ae4a073fff441bf382d40f8d40364e77 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Mon, 1 Jan 2024 21:15:05 +0300 Subject: [PATCH] Fixed infinite loop on exit --- src/DivaGL/texture.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DivaGL/texture.cpp b/src/DivaGL/texture.cpp index 418eca5..0339025 100644 --- a/src/DivaGL/texture.cpp +++ b/src/DivaGL/texture.cpp @@ -501,7 +501,6 @@ inline static uint32_t texture_get_width_mip_level(texture* tex, int32_t mip_lev static int32_t texture_load(GLenum target, GLenum internal_format, int32_t width, int32_t height, int32_t level, void* data) { - gl_state_get_all_gl_errors(); glPixelStoreiDLL(GL_UNPACK_ALIGNMENT, 1); switch (internal_format) { case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: