diff options
Diffstat (limited to 'ui/gl/gl_api_unittest.cc')
-rw-r--r-- | ui/gl/gl_api_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gl/gl_api_unittest.cc b/ui/gl/gl_api_unittest.cc index 66c9380..a5d1a9c 100644 --- a/ui/gl/gl_api_unittest.cc +++ b/ui/gl/gl_api_unittest.cc @@ -40,6 +40,7 @@ class GLApiTest : public testing::Test { num_fake_extension_strings_ = 0; fake_extension_strings_ = nullptr; + DCHECK(!g_current_gl_context_tls); g_current_gl_context_tls = new base::ThreadLocalPointer<GLApi>; SetGLGetProcAddressProc( @@ -53,6 +54,7 @@ class GLApiTest : public testing::Test { void TearDown() override { api_.reset(nullptr); delete g_current_gl_context_tls; + g_current_gl_context_tls = nullptr; SetGLImplementation(kGLImplementationNone); fake_extension_string_ = ""; |