Skip to content

Commit

Permalink
gles/tweaker: Don't panic if GetCapability aborts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Jan 17, 2018
1 parent 95e4a13 commit 05f81ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapis/api/gles/tweaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 05f81ef

Please sign in to comment.