summaryrefslogtreecommitdiffstats
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
parentcleaned up to be closer to original game (diff)
downloadre3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar.gz
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar.bz2
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar.lz
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar.xz
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.tar.zst
re3-ecf29b7769711fb4aebbe7ed6a441cd2bc7b881d.zip
-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);