diff options
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc index 84baef0..d3b1208 100644 --- a/gpu/command_buffer/client/gles2_implementation.cc +++ b/gpu/command_buffer/client/gles2_implementation.cc @@ -265,6 +265,9 @@ void GLES2Implementation::WaitForCmd() { bool GLES2Implementation::IsExtensionAvailable(const char* ext) { const char* extensions = reinterpret_cast<const char*>(GetStringHelper(GL_EXTENSIONS)); + if (!extensions) + return false; + int length = strlen(ext); while (true) { int n = strcspn(extensions, " "); |