Skip to content

Commit 3eb5d01

Browse files
committed
glinject: Disable GL capture with zink
Closes #253
1 parent 44756ae commit 3eb5d01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/glinject.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ static bool gl_init_funcs(bool glx)
228228
GETGLPROCADDR(TexStorageMem2DEXT);
229229
GETGLPROCADDR(IsMemoryObjectEXT);
230230

231+
// Always use Vulkan capture with zink
232+
const char *renderer = (const char *)gl_f.GetString(GL_RENDERER);
233+
if (strncmp(renderer, "zink", 4) == 0) {
234+
hlog("GL capture disabled with zink");
235+
return true;
236+
}
237+
231238
data.valid = true;
232239

233240
return true;

0 commit comments

Comments
 (0)