Index: gpu/blink/webgraphicscontext3d_impl.cc |
diff --git a/gpu/blink/webgraphicscontext3d_impl.cc b/gpu/blink/webgraphicscontext3d_impl.cc |
index 2b39c53fe1b0341f9abef68b5ab20ff4bd5ccf58..de6201be769315d76f427e32df5830e8834715c2 100644 |
--- a/gpu/blink/webgraphicscontext3d_impl.cc |
+++ b/gpu/blink/webgraphicscontext3d_impl.cc |
@@ -1251,7 +1251,20 @@ void WebGraphicsContext3DImpl::ConvertAttributes( |
output_attribs->fail_if_major_perf_caveat = |
attributes.failIfMajorPerformanceCaveat; |
output_attribs->bind_generates_resource = false; |
- output_attribs->webgl_version = attributes.webGLVersion; |
+ switch (attributes.webGLVersion) { |
+ case 0: |
Kimmo Kinnunen
2015/09/05 10:10:46
So this case for "webGLVersion" needed to be handl
|
+ output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; |
+ break; |
+ case 1: |
+ output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL1; |
+ break; |
+ case 2: |
+ output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; |
+ break; |
+ default: |
+ output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; |
+ break; |
+ } |
} |
} // namespace gpu_blink |