Corrected bug in setgrayshade

This commit is contained in:
Paolo Cignoni 2004-05-26 15:10:29 +00:00
parent d97337ee47
commit 1ca59ac830
1 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.5 2004/05/07 12:46:55 cignoni
added ifdef for gcc [Bug c++/14479]
Revision 1.4 2004/05/07 10:06:55 cignoni
Corrected template specialization syntax for gcc compiling
@ -142,12 +145,12 @@ public:
inline static Color4 GrayShade(float f)
{
return ColorF(f,f,f,1);
return Color4(f,f,f,1);
}
inline void SetGrayShade(float f)
{
*this = ColorF(f,f,f,1);
Import(Color4<float>(f,f,f,1));
}