Skip to content
TechnologicalTurtle edited this page Jul 23, 2026 · 5 revisions

GLFW

"GLFW failed to initialize!" issue on linux

If nothing happens and you get "GLFW failed to initialize!" fatal error in console, you can look at this.

Rendering

OpenGL error logs

If nothing, gets rendered and your're sure it's LibGui's fault, I recommend turning on OpenGL debug mode by debug_build parameter in Init() function to true, this will slow down the program, but it should print any OpenGL errors to console.
screenshot_of_such_a_log

Some possible OpenGL errors:

[ERROR]:  (1) (OpenGL error) from API with HIGH severity:
GL_INVALID_OPERATION in glBindVertexArray(non-gen name)

If you get this, you've probably tried to Render copy of some object, which you can't do as LibGui::Object has custom destructor which deletes objects buffers when out of scope. (So, yes, it'S probably okay to copy an objects, if the copy will have the exactly same lifetime, but it can have negative impact, so don't do it)

Clone this wiki locally