mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-18 06:47:46 +00:00
fixed car colour texture bug
This commit is contained in:
parent
25865e68c4
commit
ecf29b7769
|
@ -875,6 +875,7 @@ CreateCarColourTexture(uint8 r, uint8 g, uint8 b)
|
||||||
pixels[14] = b;
|
pixels[14] = b;
|
||||||
pixels[15] = 0xFF;
|
pixels[15] = 0xFF;
|
||||||
RwImageSetPixels(img, pixels);
|
RwImageSetPixels(img, pixels);
|
||||||
|
RwImageSetStride(img, 8);
|
||||||
RwImageSetPalette(img, nil);
|
RwImageSetPalette(img, nil);
|
||||||
RwImageFindRasterFormat(img, rwRASTERTYPETEXTURE, &width, &height, &depth, &format);
|
RwImageFindRasterFormat(img, rwRASTERTYPETEXTURE, &width, &height, &depth, &format);
|
||||||
ras = RwRasterCreate(width, height, depth, format);
|
ras = RwRasterCreate(width, height, depth, format);
|
||||||
|
|
Loading…
Reference in a new issue