Early out the texture key generation if there is no texture passed to the GrGLShaderB...
authortwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 17:32:25 +0000 (17:32 +0000)
committertwiz@google.com <twiz@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 Aug 2012 17:32:25 +0000 (17:32 +0000)
commit1bfccadae265a2ec0e5adfcc8fe98bee07b73835
treec898f3374f4a594b3f4709c05b0f494c1811c783
parenta2f8008fd7720e69094ed7f99a4ccc4652c79337
Early out the texture key generation if there is no texture passed to the GrGLShaderBuilder::keyForTextureAccess.

Under normal circumstances, there will always be a passed texture.  However, when running in the unit tests, CustomStages are constructed without a texture input.
Review URL: https://codereview.appspot.com/6450083

git-svn-id: http://skia.googlecode.com/svn/trunk@4924 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/gl/GrGLShaderBuilder.cpp