Bug 890929 - Add asserts for the surface format. r=BenWa

This commit is contained in:
Milan Sreckovic 2013-07-08 10:26:02 -04:00
parent a278970cd3
commit 410a3ae202

View File

@ -75,8 +75,10 @@ ShaderProgramFromTargetAndFormat(GLenum aTarget,
{
switch(aTarget) {
case LOCAL_GL_TEXTURE_EXTERNAL:
MOZ_ASSERT(aFormat == gfx::FORMAT_R8G8B8A8);
return RGBALayerExternalProgramType;
case LOCAL_GL_TEXTURE_RECTANGLE_ARB:
MOZ_ASSERT(aFormat == gfx::FORMAT_R8G8B8A8);
return RGBARectLayerProgramType;
default:
return ShaderProgramFromSurfaceFormat(aFormat);