Fixes #1200, spColor_setFromFloats clamps the values now.

This commit is contained in:
badlogic 2018-11-06 18:42:54 +01:00
parent e63a75e9e9
commit 8131c27440

View File

@ -44,6 +44,7 @@ void spColor_setFromFloats(spColor* self, float r, float g, float b, float a) {
self->g = g;
self->b = b;
self->a = a;
spColor_clamp(self);
}
void spColor_setFromColor(spColor* self, spColor* otherColor) {