From f5fa2edd220fca94d6b45e5cbc922cbdd5ec22f5 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Mon, 23 Sep 2013 18:48:58 +0200 Subject: WINTERMUTE: Remove asserts in Blend-functions in TransparentSurface. --- engines/wintermute/graphics/transparent_surface.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'engines/wintermute/graphics') diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index 4ba74b01de..411ff1f477 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -68,11 +68,6 @@ public: */ void BlenderAdditive::blendPixel(byte ina, byte inr, byte ing, byte inb, byte *outa, byte *outr, byte *outg, byte *outb, byte *ca, byte *cr, byte *cg, byte *cb) { - - - assert(!(*cr == 255 && *ca == 255 && *cb == 255 && *cg == 255)); - // Just use the faster, sans-colormod version - if (*ca != 255) { ina = (ina) * (*ca) >> 8; } @@ -105,10 +100,6 @@ void BlenderAdditive::blendPixel(byte ina, byte inr, byte ing, byte inb, byte *o */ void BlenderSubtractive::blendPixel(byte ina, byte inr, byte ing, byte inb, byte *outa, byte *outr, byte *outg, byte *outb, byte *ca, byte *cr, byte *cg, byte *cb) { - - assert(!(*cr == 255 && *ca == 255 && *cb == 255 && *cg == 255)); - // Just use the faster, sans-colormod version - //if (*ca != 255) { // ina = ina * (*ca) >> 8; // } @@ -146,10 +137,6 @@ void BlenderSubtractive::blendPixel(byte ina, byte inr, byte ing, byte inb, byte */ void BlenderNormal::blendPixel(byte ina, byte inr, byte ing, byte inb, byte *outa, byte *outr, byte *outg, byte *outb, byte *ca, byte *cr, byte *cg, byte *cb) { - - assert(!(*cr == 255 && *ca == 255 && *cb == 255 && *cg == 255)); - // Just use the faster, sans-colormod version - if (*ca != 255) { ina = ina * (*ca) >> 8; } -- cgit v1.2.3