Wrap mode affects NPOT texture completeness
Wrap mode affects NPOT texture completeness

TRAC #11861

If mipmapping is enabled, then each side of a texture must be a power-of-two or using CLAMP_TO_EDGE wrapping in that direction.
Correct the mipmap size calculation to match the spec.

Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

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

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