diff options
author | 2015-06-02 07:26:43 -0700 | |
---|---|---|
committer | 2015-06-02 07:26:43 -0700 | |
commit | 09a486e270067427c96e3a2a50ccc48890849197 (patch) | |
tree | 7da7f9bd5194e97a020cf5ea899e187ab24c719a /src | |
parent | 5c7dfeecb272d623297ffaba022b675abd384210 (diff) |
fix dm crash
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1149243006
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrInOrderDrawBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index 99725a512c..2a2b5b6912 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -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) |