why
This commit is contained in:
parent
9662653aac
commit
b7b4177251
|
@ -679,7 +679,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture()
|
||||||
GLint last_texture;
|
GLint last_texture;
|
||||||
GL_CALL(glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture));
|
GL_CALL(glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture));
|
||||||
// clear errors
|
// clear errors
|
||||||
while (glGetError()!=GL_NO_ERROR) {}
|
glGetError();
|
||||||
|
|
||||||
GL_CALL_FALSE(glGenTextures(1, &bd->FontTexture));
|
GL_CALL_FALSE(glGenTextures(1, &bd->FontTexture));
|
||||||
GL_CALL_FALSE(glBindTexture(GL_TEXTURE_2D, 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));
|
GL_CALL(glPixelStorei(GL_UNPACK_ROW_LENGTH, 0));
|
||||||
#endif
|
#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));
|
GL_CALL_FALSE(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue