mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
why
This commit is contained in:
parent
9662653aac
commit
b7b4177251
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue