]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.cpp
Mark constant data as const
[libs/gl.git] / source / core / texture.cpp
index 5c82dbe535d91a3036c4eed0f0f3e4d93a2e2fdb..e607792c9dc6f50103c2bd30d195343d107976b3 100644 (file)
@@ -13,7 +13,7 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
-int Texture::swizzle_orders[] =
+const int Texture::swizzle_orders[] =
 {
        GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA,
        GL_RED, GL_RED, GL_RED, GL_ONE,
@@ -147,11 +147,6 @@ void Texture::generate_mipmap()
        }
 }
 
-void Texture::load_image(const string &fn, bool)
-{
-       load_image(fn, 0U);
-}
-
 void Texture::load_image(const string &fn, unsigned lv)
 {
        Graphics::Image img;
@@ -160,11 +155,6 @@ void Texture::load_image(const string &fn, unsigned lv)
        image(img, lv);
 }
 
-void Texture::image(const Graphics::Image &img, bool)
-{
-       image(img, 0U);
-}
-
 void Texture::set_debug_name(const string &name)
 {
 #ifdef DEBUG