From b7b4177251929489d35207eb836b251f2ac67d7f Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 10 Jul 2023 15:47:20 -0500 Subject: [PATCH] why --- extern/imgui_patched/backends/imgui_impl_opengl3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extern/imgui_patched/backends/imgui_impl_opengl3.cpp b/extern/imgui_patched/backends/imgui_impl_opengl3.cpp index 46c28a81..d5ef359d 100644 --- a/extern/imgui_patched/backends/imgui_impl_opengl3.cpp +++ b/extern/imgui_patched/backends/imgui_impl_opengl3.cpp @@ -679,7 +679,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture() GLint last_texture; GL_CALL(glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture)); // clear errors - while (glGetError()!=GL_NO_ERROR) {} + glGetError(); GL_CALL_FALSE(glGenTextures(1, &bd->FontTexture)); GL_CALL_FALSE(glBindTexture(GL_TEXTURE_2D, bd->FontTexture)); @@ -689,7 +689,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture() GL_CALL(glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)); #endif - while (glGetError()!=GL_NO_ERROR) {} + glGetError(); GL_CALL_FALSE(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels));