mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 890929 - Add asserts for the surface format. r=BenWa
This commit is contained in:
parent
a278970cd3
commit
410a3ae202
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user