summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_implementation_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_implementation_win.cc')
-rw-r--r--ui/gl/gl_implementation_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gl/gl_implementation_win.cc b/ui/gl/gl_implementation_win.cc
index 5269297..ddc9c57 100644
--- a/ui/gl/gl_implementation_win.cc
+++ b/ui/gl/gl_implementation_win.cc
@@ -112,7 +112,8 @@ bool InitializeStaticGLBindings(GLImplementation implementation) {
// Prevent reinitialization with a different implementation. Once the gpu
// unit tests have initialized with kGLImplementationMock, we don't want to
// later switch to another GL implementation.
- DCHECK_EQ(kGLImplementationNone, GetGLImplementation());
+ if (GetGLImplementation() != kGLImplementationNone)
+ return true;
// Allow the main thread or another to initialize these bindings
// after instituting restrictions on I/O. Going forward they will