Move glTexSubImage early out check after more of the error checks are done.
Move glTexSubImage early out check after more of the error checks are done.

Trac #20875
Signed-off-by: Nicolas Capens

git-svn-id: a070b70d2b8c44c266a3870c0cddd9a0ee470458@1106 736b8ea6-26fd-11df-bfd4-992fa37f6226

vvuk/angle-old,mlfarrell/angle,jgcaaprom/android_external_chromium_org_third_party_angle,RepublicMaster/angleproject,RepublicMaster/angleproject,cvsuser-chromium/chromium-third-party_angle_dx11,mrobinson/rust-angle,bsergean/angle,cantren/angleproject,mikolalysenko/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,mrobinson/rust-angle,MIPS/external-chromium_org-third_party-angle,cantren/angleproject,KTXSoftware/angleproject,ppy/angle,ecoal95/angle,MSOpenTech/angle-win8.0,nandhanurrevanth/angle,nandhanurrevanth/angle,mikolalysenko/angle,themusicgod1/angleproject,vvuk/angle-old,vvuk/angle,themusicgod1/angleproject,ehsan/angle,pombreda/angleproject,geekboxzone/lollipop_external_chromium_org_third_party_angle,vvuk/angle,stammen/angleproject,KTXSoftware/angleproject,shairai/angleproject,ehsan/angle,stammen/angleproject,MSOpenTech/angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,ehsan/angle,MIPS/external-chromium_org-third_party-angle,RepublicMaster/angleproject,xuxiandi/angleproject,ghostoy/angle,nandhanurrevanth/angle,vvuk/angle,domokit/waterfall,ghostoy/angle,larsbergstrom/angle,KTXSoftware/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,KTXSoftware/angleproject,shairai/angleproject,vvuk/angle,cvsuser-chromium/chromium-third-party_angle_dx11,geekboxzone/lollipop_external_chromium_org_third_party_angle,larsbergstrom/angle,MSOpenTech/angle,larsbergstrom/angle,ehsan/angle,mybios/angle,jgcaaprom/android_external_chromium_org_third_party_angle,mrobinson/rust-angle,mybios/angle,MIPS/external-chromium_org-third_party-angle_dx11,android-ia/platform_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle,mlfarrell/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,KalebDark/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,KalebDark/angleproject,crezefire/angle,ecoal95/angle,shairai/angleproject,MSOpenTech/angle-win8.0,cantren/angleproject,ecoal95/angle,larsbergstrom/angle,crezefire/angle,crezefire/angle,mrobinson/rust-angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,nandhanurrevanth/angle,MIPS/external-chromium_org-third_party-angle_dx11,xin3liang/platform_external_chromium_org_third_party_angle_dx11,xin3liang/platform_external_chromium_org_third_party_angle_dx11,ecoal95/angle,MIPS/external-chromium_org-third_party-angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,mybios/angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,cvsuser-chromium/chromium-third-party_angle_dx11,domokit/waterfall,ppy/angle,shairai/angleproject,android-ia/platform_external_chromium_org_third_party_angle,pombreda/angleproject,KalebDark/angleproject,MSOpenTech/angle,csa7mdm/angle,android-ia/platform_external_chromium_org_third_party_angle,themusicgod1/angleproject,vvuk/angle-old,ghostoy/angle,mlfarrell/angle,mikolalysenko/angle,KTXSoftware/angleproject,MIPS/external-chromium_org-third_party-angle_dx11,stammen/angleproject,MSOpenTech/angle-win8.0,ghostoy/angle,stammen/angleproject,ecoal95/angle,ppy/angle,cvsuser-chromium/chromium-third-party_angle_dx11,MSOpenTech/angle-win8.0,xuxiandi/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,bsergean/angle,xuxiandi/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,MSOpenTech/angle,pombreda/angleproject,bsergean/angle,MIPS/external-chromium_org-third_party-angle,crezefire/angle,csa7mdm/angle,xin3liang/platform_external_chromium_org_third_party_angle,mikolalysenko/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,xuxiandi/angleproject,bsergean/angle,mlfarrell/angle,vvuk/angle-old,xin3liang/platform_external_chromium_org_third_party_angle_dx11,MIPS/external-chromium_org-third_party-angle_dx11,themusicgod1/angleproject,mybios/angle,csa7mdm/angle,KalebDark/angleproject,pombreda/angleproject,ppy/angle,xin3liang/platform_external_chromium_org_third_party_angle,cantren/angleproject,RepublicMaster/angleproject,mrobinson/rust-angle,csa7mdm/angle