Index: app/gfx/gl/gl_context.cc |
=================================================================== |
--- app/gfx/gl/gl_context.cc (revision 67161) |
+++ app/gfx/gl/gl_context.cc (working copy) |
@@ -15,7 +15,8 @@ |
std::string GLContext::GetExtensions() { |
DCHECK(IsCurrent()); |
- return std::string(reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS))); |
+ const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); |
+ return std::string(ext ? ext : ""); |
} |
bool GLContext::HasExtension(const char* name) { |