Add -gl-debug option to make it easier to debug user issues that cant easily be reproduced

This commit is contained in:
dec05eba
2025-01-16 22:55:20 +01:00
parent 4211dfa2f8
commit b68400ca20
3 changed files with 38 additions and 25 deletions

View File

@@ -277,7 +277,7 @@ struct gsr_egl {
unsigned char (*glUnmapBuffer)(unsigned int target);
};
bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture);
bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture, bool enable_debug);
void gsr_egl_unload(gsr_egl *self);
/* Does opengl swap with egl or glx, depending on which one is active */