Skip to content
Snippets Groups Projects
Commit db0e11fa authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

MAINT-7977: Per Graham, unbind textures as well as deleting.

parent 701f8962
No related branches found
No related tags found
No related merge requests found
...@@ -956,6 +956,8 @@ F32 gpu_benchmark() ...@@ -956,6 +956,8 @@ F32 gpu_benchmark()
~TextureHolder() ~TextureHolder()
{ {
// unbind
texUnit->unbind(LLTexUnit::TT_TEXTURE);
// ensure that we delete these textures regardless of how we exit // ensure that we delete these textures regardless of how we exit
LLImageGL::deleteTextures(source.size(), &source[0]); LLImageGL::deleteTextures(source.size(), &source[0]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment