summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2017-11-16 16:54:27 -0500
committerNat Goodspeed <nat@lindenlab.com>2017-11-16 16:54:27 -0500
commitdfc0785857249120c7f10b9cbcfce4c3b801ced2 (patch)
tree4e49d01272e56265d55eef60ded70d6f94d73007 /indra/llrender/llvertexbuffer.h
parentd310159beee21fe1314a97bde83b0102a9e36de3 (diff)
MAINT-7977: If getVertexStrider() returns false, abandon benchmark.
Ruslan tracked the observed crash to assignments (to create a dummy triangle) through an LLStrider<LLVector3> obtained from getVertexStrider(). When getVertexStrider() returns false, produce a warning and just skip the rest of the benchmark test. The one bit of explicit cleanup apparently required by that early exit is a call to LLImageGL::deleteTextures() to match the preceding generateTextures() call. Wrap both in a new TextureHolder class whose destructor takes care of cleanup. The only other references to the corresponding U32 array are a couple calls to LLTexUnit::bindManual(); add a bind() method to support that. Also fix apparent bug in the LL_DARWIN special case for "improbably high and likely incorrect": the code assigned -1.f (the "couldn't compute" value) to gbps, overlooking the fact that gbps is unconditionally recomputed below. In the "likely incorrect" stanza, simply return -1.f instead.
Diffstat (limited to 'indra/llrender/llvertexbuffer.h')
0 files changed, 0 insertions, 0 deletions