- fixed: RenderCommand::isCompatible failed to properly compare the SpecialColormap.

This resulted in always returning 'false' which prevented merging line draws, ultimately crashing the Vulkan renderer on a buffer overflow.
This commit is contained in:
Christoph Oelckers 2019-04-24 20:30:35 +02:00
parent 7ee64ce957
commit 15d2b47798

View file

@ -105,13 +105,14 @@ public:
return mTexture == other.mTexture &&
mType == other.mType &&
mTranslation == other.mTranslation &&
mSpecialColormap == other.mSpecialColormap &&
mSpecialColormap[0].d == other.mSpecialColormap[0].d &&
mSpecialColormap[1].d == other.mSpecialColormap[1].d &&
!memcmp(mScissor, other.mScissor, sizeof(mScissor)) &&
mDesaturate == other.mDesaturate &&
mRenderStyle == other.mRenderStyle &&
mDrawMode == other.mDrawMode &&
mFlags == other.mFlags &&
mColor1 == other.mColor1;
mColor1.d == other.mColor1.d;
}
};