Assert IsCurrent in TextureGarbageBin::EmptyGarbage. r?jrmuizel draft
authorJeff Gilbert <jdashg@gmail.com>
Tue, 12 Apr 2016 18:49:21 -0700
changeset 350563 3eee579819e03d42745913f376ea85758f87273c
parent 350562 e34378559078c228439d7f5f4fc0756513ce5cae
child 350564 8bd4fb378f093418b58025e98136f11c1724f65e
push id15372
push userjgilbert@mozilla.com
push dateThu, 14 Apr 2016 00:15:20 +0000
reviewersjrmuizel
milestone48.0a1
Assert IsCurrent in TextureGarbageBin::EmptyGarbage. r?jrmuizel From 5bbe6aa209356262374466fbe91629285ba1c637 Mon Sep 17 00:00:00 2001 --- gfx/gl/TextureGarbageBin.cpp | 1 + 1 file changed, 1 insertion(+) MozReview-Commit-ID: 7SbYm6aDZnT
gfx/gl/TextureGarbageBin.cpp
--- a/gfx/gl/TextureGarbageBin.cpp
+++ b/gfx/gl/TextureGarbageBin.cpp
@@ -31,14 +31,15 @@ TextureGarbageBin::Trash(GLuint tex)
 
 void
 TextureGarbageBin::EmptyGarbage()
 {
     MutexAutoLock lock(mMutex);
     if (!mGL)
         return;
 
+    MOZ_RELEASE_ASSERT(mGL->IsCurrent());
     while (!mGarbageTextures.empty()) {
         GLuint tex = mGarbageTextures.top();
         mGarbageTextures.pop();
         mGL->fDeleteTextures(1, &tex);
     }
 }