mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-12-03 00:14:47 +01:00
glMapBuffer() can return NULL, for example with GL_OUT_OF_MEMORY, and the callers then wrote to the NULL pointer and crashed with SIGSEGV. Report the OpenGL error and exit via fatal(), which is what the Vulkan and Metal drivers already do when they fail to allocate buffer storage. Fixes #10976