]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/sphere.cpp
Mark constant data as const
[libs/gl.git] / source / builders / sphere.cpp
index f7e06eb7041de62564329a807236a3db799e5ae0..7873d3a2132d1407cf8cfd78626b4dbd7ed6ebc3 100644 (file)
@@ -80,7 +80,7 @@ void UvSphereBuilder::build(PrimitiveBuilder &builder) const
 
 
 // https://en.wikipedia.org/wiki/Regular_icosahedron#Cartesian_coordinates
-float IcoSphereBuilder::base_vertices[12*3] =
+const float IcoSphereBuilder::base_vertices[12*3] =
 {
         0.0f,       -0.5257311f, -0.8506508f,
         0.0f,        0.5257311f, -0.8506508f,
@@ -96,7 +96,7 @@ float IcoSphereBuilder::base_vertices[12*3] =
         0.5257311f,  0.8506508f,  0.0f
 };
 
-unsigned IcoSphereBuilder::base_triangles[20*3] =
+const unsigned IcoSphereBuilder::base_triangles[20*3] =
 {
        0, 1, 6,
        1, 0, 4,