| Index: webkit/gpu/webgraphicscontext3d_in_process_impl.cc
|
| diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
|
| index 97e1c58374bd5c13b5551f1eb20f910f16045f90..7ce072f2f74f33804fa692a3c113770f78da43fd 100644
|
| --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
|
| +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
|
| @@ -1254,8 +1254,9 @@ WebString WebGraphicsContext3DInProcessImpl::getShaderSource(WebGLId shader) {
|
|
|
| WebString WebGraphicsContext3DInProcessImpl::getString(WGC3Denum name) {
|
| makeContextCurrent();
|
| - std::string result(reinterpret_cast<const char*>(glGetString(name)));
|
| + std::string result;
|
| if (name == GL_EXTENSIONS) {
|
| + result = gl_context_->GetExtensions();
|
| if (!is_gles2_) {
|
| std::vector<std::string> split;
|
| base::SplitString(result, ' ', &split);
|
| @@ -1265,6 +1266,8 @@ WebString WebGraphicsContext3DInProcessImpl::getString(WGC3Denum name) {
|
| result += " GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra";
|
| }
|
| }
|
| + } else {
|
| + result = reinterpret_cast<const char*>(glGetString(name));
|
| }
|
| return WebString::fromUTF8(result.c_str());
|
| }
|
|
|