summaryrefslogtreecommitdiff
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-03 13:36:25 +0200
committeraap <aap@papnet.eu>2019-07-03 13:36:25 +0200
commitecf29b7769711fb4aebbe7ed6a441cd2bc7b881d (patch)
tree84cc8a2ca1ca34e003fb9891eff220162a34c6eb /src/modelinfo
parent25865e68c4c87cfe3cf63c8721f3d0ec8dfca35c (diff)
fixed car colour texture bug
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/VehicleModelInfo.cpp1
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);