mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user