Bug 942951 - Add missing GL_RGB32F and GL_RBGA32F formats to WebGLContext::GetBitsPerTexel. r=bjacob

This commit is contained in:
Jeff Gilbert 2014-01-10 08:08:37 -05:00
parent b631d4766c
commit 19f6c0c49e

View File

@ -490,9 +490,11 @@ uint32_t WebGLContext::GetBitsPerTexel(GLenum format, GLenum type)
case LOCAL_GL_LUMINANCE_ALPHA:
return 2 * multiplier;
case LOCAL_GL_RGB:
case LOCAL_GL_RGB32F:
case LOCAL_GL_SRGB_EXT:
return 3 * multiplier;
case LOCAL_GL_RGBA:
case LOCAL_GL_RGBA32F:
case LOCAL_GL_SRGB_ALPHA_EXT:
return 4 * multiplier;
case LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1:
@ -519,7 +521,7 @@ uint32_t WebGLContext::GetBitsPerTexel(GLenum format, GLenum type)
return 16;
}
MOZ_ASSERT(false);
MOZ_ASSERT(false, "Unhandled format+type combo.");
return 0;
}