[PICA] == to >= in uniform upload

This commit is contained in:
wheremyfoodat 2023-05-08 23:05:47 +03:00
parent 09ba66ae60
commit cd1323d57e

View file

@ -218,7 +218,7 @@ public:
if (floatUniformIndex >= 96)
Helpers::panic("[PICA] Tried to write float uniform %d", floatUniformIndex);
if ((f32UniformTransfer && floatUniformWordCount == 4) || (!f32UniformTransfer && floatUniformWordCount == 3)) {
if ((f32UniformTransfer && floatUniformWordCount >= 4) || (!f32UniformTransfer && floatUniformWordCount >= 3)) {
vec4f& uniform = floatUniforms[floatUniformIndex++];
floatUniformWordCount = 0;