fix dm crash
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1149243006
This commit is contained in:
parent
5c7dfeecb2
commit
09a486e270
@ -10,7 +10,7 @@
|
||||
// We will use the reordering buffer, unless we have NVPR.
|
||||
// TODO move NVPR to batch so we can reorder
|
||||
static inline bool allow_reordering(const GrCaps* caps) {
|
||||
return !caps->shaderCaps()->pathRenderingSupport();
|
||||
return caps && caps->shaderCaps() && !caps->shaderCaps()->pathRenderingSupport();
|
||||
}
|
||||
|
||||
GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context)
|
||||
|
Loading…
Reference in New Issue
Block a user