diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2017-11-16 18:34:40 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2017-11-16 18:34:40 -0500 |
commit | f2ffd637167295f9c5aa7b7643a621287068cc29 (patch) | |
tree | 28244a57888f43fc25b184540205d02e03bf833b /indra | |
parent | dfc0785857249120c7f10b9cbcfce4c3b801ced2 (diff) |
MAINT-7977: Release the LLRenderTargets when done.
A classic-C array doesn't destroy its individual elements, but a std::vector
does. Use a std::vector<LLRenderTarget> for dest, so each LLRenderTarget will
be destroyed. ~LLRenderTarget() calls its release() method.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llglsandbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index af0bbf9a88..31d60c3afe 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -960,7 +960,7 @@ F32 gpu_benchmark() std::vector<U32> source; }; - LLRenderTarget dest[count]; + std::vector<LLRenderTarget> dest(count); TextureHolder texHolder(0, count); std::vector<F32> results; |