fix dm crash

TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1149243006
This commit is contained in:
joshualitt 2015-06-02 07:26:43 -07:00 committed by Commit bot
parent 5c7dfeecb2
commit 09a486e270

View File

@ -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)