projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix all cases of not-optimal UV-coordinates
[supertux.git]
/
src
/
video
/
color.hpp
diff --git
a/src/video/color.hpp
b/src/video/color.hpp
index
dc912f7
..
391c929
100644
(file)
--- a/
src/video/color.hpp
+++ b/
src/video/color.hpp
@@
-21,6
+21,7
@@
#define __COLOR_HPP__
#include <vector>
#define __COLOR_HPP__
#include <vector>
+#include <assert.h>
#include "log.hpp"
class Color
#include "log.hpp"
class Color
@@
-38,6
+39,7
@@
public:
}
Color(const std::vector<float>& vals)
{
}
Color(const std::vector<float>& vals)
{
+ assert(vals.size() >= 3);
red = vals[0];
green = vals[1];
blue = vals[2];
red = vals[0];
green = vals[1];
blue = vals[2];
@@
-62,4
+64,3
@@
public:
};
#endif
};
#endif
-