Made GL_RGB textures map to D3DFMT_X8R8G8B8.
Made GL_RGB textures map to D3DFMT_X8R8G8B8.

I suspect there is a subtle reason why this is the wrong thing to do.

The issue I am trying to address is glBlitFramebufferANGLE generating an error when bliting from a GL_RGB8_OES renderbuffer to a GL_RGB texture bound to the read framebuffer and draw framebuffer respectively. It verifies that both surfaces have the same underlying D3DFMT but GL_RGB8_OES renderbuffers are backed by X8R8G8B8 and GL_RGB textures were previously backed by A8R8G8B8.

Since textures cannot as far as I know be created GL_RGB8_OES, it would be useful to have a way to blit from a GL_RGB8_OES renderbuffer to a GL_RGB texture.




Review URL: http://codereview.appspot.com/2822041

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

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