From 05f81ef00d84f7f638d511715f123b164b17a12e Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Tue, 16 Jan 2018 18:04:32 +0000 Subject: [PATCH] gles/tweaker: Don't panic if GetCapability aborts. --- gapis/api/gles/tweaker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapis/api/gles/tweaker.go b/gapis/api/gles/tweaker.go index d9992316bb..105fad51ba 100644 --- a/gapis/api/gles/tweaker.go +++ b/gapis/api/gles/tweaker.go @@ -68,7 +68,7 @@ func (t *tweaker) getCapability(ctx context.Context, name GLenum) bool { i := GLuint(0) // capability index. res, err := subGetCapability(ctx, a, t.dID, o, s, GetState(s), a.thread, nil, name, i) if err != nil { - panic(err) + return false } return res != 0 }