Don't write to transformedvertex.color1[4], it doesn't exist.

This commit is contained in:
Henrik Rydgard committed 2013-05-02 20:18:46 +02:00
1 parent 45b6670310
commit 6d66577f17
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -680,6 +680,7 @@ static const u8 bitsPerPixel[11] = {
8, //GE_TFMT_DXT5=8,
};
// This is the same as (fmt & 4) != 0, heh.
static const bool formatUsesClut[11] = {
false,
false,
+1 -1
View File
@@ -680,7 +680,7 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
for (int i = 0; i < 4; i++) {
transformed[index].color0[i] = c0[i] * 255.0f;
}
for (int i = 0; i < 4; i++) {
for (int i = 0; i < 3; i++) {
transformed[index].color1[i] = c1[i] * 255.0f;
}
}