From db0e11fae3e7db24d66a1f9be6b0f092bfe69063 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Fri, 17 Nov 2017 18:34:45 -0500
Subject: [PATCH] MAINT-7977: Per Graham, unbind textures as well as deleting.

---
 indra/newview/llglsandbox.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp
index 37e7c6fa647..1b6494195b8 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]);
 		}
-- 
GitLab