-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: ImGui is setting the font texture ID to zero everytime the font atlas is built. #214
Comments
UPDATE: I was able to replicate the bug by creating a new project with the default ImGui pom.xml for Maven and use the following code. `import static org.lwjgl.glfw.GLFW.glfwPollEvents; import java.awt.Color; import org.lwjgl.glfw.GLFW; import imgui.ImFont; public class Main {
} |
Version
1.86.11
What happened?
When trying to add fonts, I noticed that no matter what file I loaded from memory or file made every texture appear pure black in OpenGL. After some testing, I determined that even when I set the textureID on the font, it still renders as ID 0.
I'm on Windows, 64-bit, with an NVIDIA 3080 GPU.
The font code is below.
Reproduction
I loaded different fonts using a few different calls and determined the texture ID did not change.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: