Don't allow implicit scalar to vector casts in Vec helpers

* With all default parameters in the constructor `Vec4f foo = 1.0f` would be
  legal by implicit constructor.
This commit is contained in:
baldurk
2025-09-19 14:13:01 +01:00
parent 7f92c9204b
commit 1e0f960635
7 changed files with 22 additions and 15 deletions
+1 -1
View File
@@ -1144,7 +1144,7 @@ ResultDetails ReplayController::SaveTexture(const TextureSave &saveData, const r
if(sd.alpha != AlphaMapping::Discard)
{
Vec4f col = Vec4f(sd.alphaCol.x, sd.alphaCol.y, sd.alphaCol.z);
Vec4f col = Vec4f(sd.alphaCol.x, sd.alphaCol.y, sd.alphaCol.z, 0.0f);
if(sd.alpha == AlphaMapping::BlendToCheckerboard)
{
bool lightSquare = ((x / 64) % 2) == ((y / 64) % 2);