Fixed crash caused by invalid NinePatch sprites
This commit is contained in:
@@ -20,9 +20,9 @@ void main(){
|
||||
vec4 color = texture2D(u_texture, c);
|
||||
|
||||
if(noise > 0.54 && noise < 0.68){
|
||||
color.rgb *= 1.4;
|
||||
color.rgb *= vec3(1.4);
|
||||
}else if(!(noise > 0.40 && noise < 0.54)){
|
||||
color.rgb *= 1.2;
|
||||
color.rgb *= vec3(1.2);
|
||||
}
|
||||
|
||||
gl_FragColor = color;
|
||||
|
||||
Reference in New Issue
Block a user