diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2017-11-17 18:34:45 -0500 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2017-11-17 18:34:45 -0500 | 
| commit | db0e11fae3e7db24d66a1f9be6b0f092bfe69063 (patch) | |
| tree | 5622814a4698f17d2585ff3ad11bce55261f9dba /indra/newview | |
| parent | 701f89625d5c709b21223164c152dbffd8fe9128 (diff) | |
MAINT-7977: Per Graham, unbind textures as well as deleting.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llglsandbox.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index 37e7c6fa64..1b6494195b 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -956,6 +956,8 @@ F32 gpu_benchmark()  		~TextureHolder()  		{ +			// unbind +			texUnit->unbind(LLTexUnit::TT_TEXTURE);  			// ensure that we delete these textures regardless of how we exit  			LLImageGL::deleteTextures(source.size(), &source[0]);  		} | 
