Fixed a bug where immutable textures could not have glTexSubImage called on them.

TRAC #22869

Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang

git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2359 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/libGLESv2.cpp b/src/libGLESv2/libGLESv2.cpp
index 5a8f07e..0827e57 100644
--- a/src/libGLESv2/libGLESv2.cpp
+++ b/src/libGLESv2/libGLESv2.cpp
@@ -700,7 +700,7 @@
         return gl::error(GL_INVALID_OPERATION, false);
     }
 
-    if (texture->isImmutable())
+    if (texture->isImmutable() && !isSubImage)
     {
         return gl::error(GL_INVALID_OPERATION, false);
     }