mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-31 10:21:45 +02:00
fixed car colour texture bug
This commit is contained in:
@@ -875,6 +875,7 @@ CreateCarColourTexture(uint8 r, uint8 g, uint8 b)
|
||||
pixels[14] = b;
|
||||
pixels[15] = 0xFF;
|
||||
RwImageSetPixels(img, pixels);
|
||||
RwImageSetStride(img, 8);
|
||||
RwImageSetPalette(img, nil);
|
||||
RwImageFindRasterFormat(img, rwRASTERTYPETEXTURE, &width, &height, &depth, &format);
|
||||
ras = RwRasterCreate(width, height, depth, format);
|
||||
|
Reference in New Issue
Block a user