diff options
Diffstat (limited to 'ui/gl/gl_implementation_ozone.cc')
-rw-r--r-- | ui/gl/gl_implementation_ozone.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gl/gl_implementation_ozone.cc b/ui/gl/gl_implementation_ozone.cc index b8dd2c4..3659a02 100644 --- a/ui/gl/gl_implementation_ozone.cc +++ b/ui/gl/gl_implementation_ozone.cc @@ -37,7 +37,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; switch (implementation) { case kGLImplementationOSMesaGL: |