aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-04-06 21:52:15 +0200
committerdec05eba <dec05eba@protonmail.com>2025-04-06 21:52:15 +0200
commit5029906c344ea39c13c9875d89da0f6b4a8595aa (patch)
tree1f85799d2e51d676e8cf571f94f12a3a20e04446 /src/main.cpp
parent9de04e74eaab2748318198d2b8fa273c3a79fe12 (diff)
Fallback to graphics shader instead of compute shader if the gpu doesn't support compute shader (either glsl 420 or opengl es glsl 310)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6b3683a..b5f95db 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3706,6 +3706,11 @@ int main(int argc, char **argv) {
_exit(1);
}
+ gsr_shader_enable_debug_output(gl_debug);
+#ifndef NDEBUG
+ gsr_shader_enable_debug_output(true);
+#endif
+
if(egl.gpu_info.is_steam_deck) {
fprintf(stderr, "gsr warning: steam deck has multiple driver issues. One of them has been reported here: https://github.com/ValveSoftware/SteamOS/issues/1609\n"
"If you have issues with GPU Screen Recorder on steam deck that you don't have on a desktop computer then report the issue to Valve and/or AMD.\n");