forked from enlightenment/efl
evas: fix unreachable code in _generate_unic_color_key function in Evas.Canvas3D.
Summary: Have a sence. It is hard to assume that more that 16 million color will be used. @fix CID: 1339790 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3347 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
01f1318117
commit
5d4f3b22c4
|
@ -41,12 +41,6 @@ _generate_unic_color_key(Evas_Color *color, Evas_Color *bg_color, Evas_Canvas3D_
|
|||
GET_NEXT_COLOR
|
||||
}
|
||||
|
||||
if ((red == 255) && (green == 255) && (blue == 255))
|
||||
{
|
||||
ERR("Overfill number of color. %d %s", __LINE__, __FILE__);
|
||||
red = green = blue = 0;
|
||||
}
|
||||
|
||||
color->r = (double)red / 255;
|
||||
color->g = (double)green / 255;
|
||||
color->b = (double)blue / 255;
|
||||
|
|
Loading…
Reference in New Issue