We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b999f commit b735a74Copy full SHA for b735a74
src/glinject.c
@@ -978,13 +978,22 @@ static bool gl_init(void *display, void *surface)
978
979
static bool gl_capture_disabled()
980
{
981
+ static int disabled = 0;
982
+
983
+ if (disabled != 0) {
984
+ return disabled == 1;
985
+ }
986
987
+ disabled = 1;
988
989
// Always use Vulkan capture with zink
990
const char *renderer = (const char *)gl_f.GetString(GL_RENDERER);
991
if (renderer && strncmp(renderer, "zink", 4) == 0) {
992
hlog("GL capture disabled with zink");
993
return true;
994
}
995
996
+ disabled = -1;
997
return false;
998
999
0 commit comments