summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_implementation_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_implementation_android.cc')
-rw-r--r--ui/gl/gl_implementation_android.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gl/gl_implementation_android.cc b/ui/gl/gl_implementation_android.cc
index 190f669..31fec9a 100644
--- a/ui/gl/gl_implementation_android.cc
+++ b/ui/gl/gl_implementation_android.cc
@@ -52,7 +52,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 kGLImplementationEGLGLES2: {