rgba texture generation fix