Raylib: GPU is not ready to load data, trying to load before InitWindow()?
07:54 01 Apr 2026

So, I'm trying to make an cookbook in C++. Despite it working on my previous OS, now it is broken. For some reason it tells me that GPU is not ready. I've used Hyprland and Gnome, and it's broken in both. How to fix this?

Error

/home/ntzch/CLionProjects/SourcePan/cmake-build-debug/project

INFO: Initializing raylib 5.6-dev

INFO: Platform backend: DESKTOP (GLFW)

INFO: Supported raylib modules:

INFO:     > rcore:..... loaded (mandatory)

INFO:     > rlgl:...... loaded (mandatory)

INFO:     > rshapes:... loaded (optional)

INFO:     > rtextures:. loaded (optional)

INFO:     > rtext:..... loaded (optional)

INFO:     > rmodels:... loaded (optional)

INFO:     > raudio:.... loaded (optional)

WARNING: GLFW: Error: 65542 Description: EGL: Failed to initialize EGL: EGL is not or could not be initialized

WARNING: GLFW: Failed to initialize Window

WARNING: SYSTEM: Failed to initialize platform

INFO: TIMER: Target time per frame: 16.667 milliseconds

INFO: FILEIO: [/home/ntzch/.local/share/SourcePan/font.ttf] File loaded successfully

WARNING: GL: GPU is not ready to load data, trying to load before InitWindow()?

INFO: FONT: Data loaded successfully (100 pixel size | 95 glyphs)

INFO: FILEIO: [/home/ntzch/.local/share/SourcePan/rld.png] File loaded successfully

INFO: IMAGE: Data loaded successfully (512x512 | R8G8B8A8 | 1 mipmaps)

WARNING: GL: GPU is not ready to load data, trying to load before InitWindow()?

AddressSanitizer:DEADLYSIGNAL

UI code: https://github.com/chepyrka2/SourcePan/blob/main/src/main.cpp

c++ opengl raylib