Skip to content

Commit

Permalink
Fix a crash due to footprint builder (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qining authored Jun 13, 2018
1 parent 94a829f commit c323f64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gapis/api/vulkan/footprint_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,9 @@ func (vb *FootprintBuilder) getImageData(ctx context.Context,
return []dependencygraph.DefUseVariable{}
}
}
if vb.images[vkImg] == nil {
return []dependencygraph.DefUseVariable{}
}
data := vb.images[vkImg].opaqueData.getBoundData(ctx, bh, 0, vkWholeSize)
for _, aspecti := range vb.images[vkImg].sparseData {
for _, layeri := range aspecti {
Expand Down

0 comments on commit c323f64

Please sign in to comment.