From d310159beee21fe1314a97bde83b0102a9e36de3 Mon Sep 17 00:00:00 2001 From: ruslantproductengine Date: Thu, 16 Nov 2017 19:14:28 +0200 Subject: MAINT-7977 [Alex Ivy] Feature Table crashes In case of buff->getVertexStrider(v) return false it mean that glMapBufferRange() return NULL The next three lines can be the reason of this crash. --- indra/newview/llglsandbox.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index c80dec0e75..44e7ae15ba 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -963,11 +963,16 @@ F32 gpu_benchmark() LLStrider v; LLStrider tc; - buff->getVertexStrider(v); - - v[0].set(-1,1,0); - v[1].set(-1,-3,0); - v[2].set(3,1,0); + if (buff->getVertexStrider(v)) + { + v[0].set(-1, 1, 0); + v[1].set(-1, -3, 0); + v[2].set(3, 1, 0); + } + else + { + LL_WARNS() << "GL LLVertexBuffer::getVertexStrider() return false " << (NULL == buff->getMappedData() ? "buff->getMappedData() is NULL" : "buff->getMappedData() not NULL") << LL_ENDL; + } buff->flush(); -- cgit v1.2.3