]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarraybuilder.cpp
Add virtual destructors to Renderable and Uniform
[libs/gl.git] / source / vertexarraybuilder.cpp
index c64c8ebfc882fca127b9771b2d1818af9ddeabaa..f251632e9dfcaffce572aef546d056ee33d2b661 100644 (file)
@@ -49,10 +49,10 @@ void VertexArrayBuilder::vertex_(float x, float y, float z, float w)
                        if(size==1)
                        {
                                union { ubyte c[4]; float f; } u;
-                               u.c[0]=(ubyte)(cr*255);
-                               u.c[1]=(ubyte)(cg*255);
-                               u.c[2]=(ubyte)(cb*255);
-                               u.c[3]=(ubyte)(ca*255);
+                               u.c[0]=static_cast<ubyte>(cr*255);
+                               u.c[1]=static_cast<ubyte>(cg*255);
+                               u.c[2]=static_cast<ubyte>(cb*255);
+                               u.c[3]=static_cast<ubyte>(ca*255);
                                *+ptr++=u.f;
                        }
                        else