]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.h
Depracate the srgb parameter of Texture::image functions
[libs/gl.git] / source / texture2d.h
index b7070e8f78093c1e4543b65feb4fafab0720888d..7553b6b703c944a2144e989bf605d41b9ae2295c 100644 (file)
@@ -72,16 +72,13 @@ public:
 
        /** Updates the contents of the entire texture from an image.  If storage
        has not been defined, it will be set to match the image.  Otherwise the
-       image must match the defined storage.
-
-       If srgb is true and storage is determined by this call, then an sRGB pixel
-       format will be used. */
-       virtual void image(const Graphics::Image &, unsigned lv, bool srgb = false);
+       image must match the defined storage. */
+       virtual void image(const Graphics::Image &, unsigned lv = 0);
 
        using Texture::image;
 
 private:
-       void image(const Graphics::Image &, unsigned, bool, bool);
+       void image(const Graphics::Image &, unsigned, bool);
 
 public:
        unsigned get_width() const { return width; }