diff options
author | aap <aap@papnet.eu> | 2019-07-03 13:36:25 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-03 13:36:25 +0200 |
commit | ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d (patch) | |
tree | 84cc8a2ca1ca34e003fb9891eff220162a34c6eb /src/modelinfo | |
parent | 25865e68c4c87cfe3cf63c8721f3d0ec8dfca35c (diff) |
fixed car colour texture bug
Diffstat (limited to 'src/modelinfo')
-rw-r--r-- | src/modelinfo/VehicleModelInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp index 78eee96c..0d206db0 100644 --- a/src/modelinfo/VehicleModelInfo.cpp +++ b/src/modelinfo/VehicleModelInfo.cpp @@ -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); |