2011-05-26 Syed Idris Shah <syed.idris-shah@nokia.com>
authorcommit-queue <commit-queue@webkit.org>
Thu, 26 May 2011 23:58:38 +0000 (23:58 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 27 May 2011 17:52:19 +0000 (14:52 -0300)
commit9682ccf20f6cbc1435bc6a420b6de258448315ab
treee7091d1d7159c85f0ef93d0edc5e35a1369ec5be
parent122c9e6c3d0b05898c461fe4b69ceafbfff24cd9
2011-05-26  Syed Idris Shah  <syed.idris-shah@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] fast/canvas/webgl/gl-uniform-arrays.html failing for Qt on Linux
        https://bugs.webkit.org/show_bug.cgi?id=60377

        LayoutTests/fast/canvas/webgl/gl-uniform-arrays.html

        For an array of active uniform, we should be careful while truncating the name of the uniform.
        Currently we are truncating the last three characters of an array with out checking for [0].
        As a result we are truncating the the actual name of the active uniforms i.e. color to co.

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::getUniform): Strip "[0]" from the name if it's an array and is part of the name.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLRenderingContext.cpp