Index: gpu/command_buffer/client/gles2_implementation.cc |
=================================================================== |
--- gpu/command_buffer/client/gles2_implementation.cc (revision 198276) |
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy) |
@@ -265,6 +265,9 @@ |
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, " "); |