зеркало из https://github.com/mozilla/gecko-dev.git
Added check to 8-bit blender code for null cmap.map to fix blender crash on Linux(p=afranke@ags.uni-sb.de) b=17356 r=attinasi@netscape.com
This commit is contained in:
Родитель
e92fa499d2
Коммит
954520c22d
|
@ -572,6 +572,11 @@ PRUint32 *distbuffer;
|
||||||
PRUint32 quantlevel,tnum,num,shiftnum;
|
PRUint32 quantlevel,tnum,num,shiftnum;
|
||||||
NI_RGB *map;
|
NI_RGB *map;
|
||||||
|
|
||||||
|
if (nsnull == aColorMap->cmap.map) {
|
||||||
|
NS_ASSERTION(PR_FALSE, "NULL Colormap during 8-bit blend");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
aBlendVal = (aBlendVal*255)/100;
|
aBlendVal = (aBlendVal*255)/100;
|
||||||
val2 = aBlendVal;
|
val2 = aBlendVal;
|
||||||
val1 = 255-val2;
|
val1 = 255-val2;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче