pgraph: fix faulty comparison code of ShaderInput vectors

This commit is contained in:
rdb 2020-01-03 22:00:09 +01:00
parent b60c3e6c7e
commit 135931c926

View File

@ -491,16 +491,16 @@ operator < (const ShaderInput &other) const {
case M_vector: case M_vector:
if (_stored_vector[0] != other._stored_vector[0]) { if (_stored_vector[0] != other._stored_vector[0]) {
return (_stored_vector[0] < other._stored_vector[0]) ? -1 : 1; return _stored_vector[0] < other._stored_vector[0];
} }
if (_stored_vector[1] != other._stored_vector[1]) { if (_stored_vector[1] != other._stored_vector[1]) {
return (_stored_vector[1] < other._stored_vector[1]) ? -1 : 1; return _stored_vector[1] < other._stored_vector[1];
} }
if (_stored_vector[2] != other._stored_vector[2]) { if (_stored_vector[2] != other._stored_vector[2]) {
return (_stored_vector[2] < other._stored_vector[2]) ? -1 : 1; return _stored_vector[2] < other._stored_vector[2];
} }
if (_stored_vector[3] != other._stored_vector[3]) { if (_stored_vector[3] != other._stored_vector[3]) {
return (_stored_vector[3] < other._stored_vector[3]) ? -1 : 1; return _stored_vector[3] < other._stored_vector[3];
} }
return 0; return 0;