Commit aa2284d3 authored by zmo@google.com's avatar zmo@google.com

Get correct driver version on ES backend.

GL_VERSION format differs in GL and GLES: the latter starts with "OpenGL ES".

BUG=none
TEST=driver vendor/version shows correct information in about:gpu for ES backend.
Review URL: http://codereview.chromium.org/7578005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95453 0039d316-1c4b-4281-b951-d872f2087c98
parent 1f2d7c33
......@@ -330,6 +330,8 @@ bool CollectDriverInfoGL(GPUInfo* gpu_info) {
DCHECK(gpu_info);
std::string gl_version_string = gpu_info->gl_version_string;
if (StartsWithASCII(gl_version_string, "OpenGL ES", true))
gl_version_string = gl_version_string.substr(10);
std::vector<std::string> pieces;
base::SplitStringAlongWhitespace(gl_version_string, &pieces);
// In linux, the gl version string might be in the format of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment