mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
pgraph: fix faulty comparison code of ShaderInput vectors
This commit is contained in:
parent
b60c3e6c7e
commit
135931c926
@ -491,16 +491,16 @@ operator < (const ShaderInput &other) const {
|
||||
|
||||
case M_vector:
|
||||
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]) {
|
||||
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]) {
|
||||
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]) {
|
||||
return (_stored_vector[3] < other._stored_vector[3]) ? -1 : 1;
|
||||
return _stored_vector[3] < other._stored_vector[3];
|
||||
}
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user