]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the deprecated srgb_conversion flag from Resources
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 08:36:42 +0000 (10:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 09:01:58 +0000 (11:01 +0200)
By now it didn't even have any effect anymore

source/resources/resources.cpp
source/resources/resources.h

index 7cbdd2c5069f3bc8f51311bfa52e3183f7457787..e67405ac705489a56dbc435cd0c1224b1478e667 100644 (file)
@@ -43,7 +43,6 @@ void init_builtin_data(DataFile::BuiltinSource &);
 Resources *Resources::global_resources = 0;
 
 Resources::Resources(bool set_as_global):
-       srgb_conversion(false),
        resource_manager(0)
 {
        add_type<Animation>().suffix(".anim").keyword("animation");
@@ -140,11 +139,6 @@ const DataFile::CollectionSource &Resources::get_builtins()
        return builtins;
 }
 
-void Resources::set_srgb_conversion(bool c)
-{
-       srgb_conversion = c;
-}
-
 void Resources::set_resource_manager(ResourceManager *m)
 {
        resource_manager = m;
index 589ea5ae78d9f758b30fd2d65b55964983c09f1a..0743f763f306406920f175d541d1714429e09990 100644 (file)
@@ -82,7 +82,6 @@ private:
                virtual void type(const DataFile::Symbol &);
        };
 
-       bool srgb_conversion;
        ResourceManager *resource_manager;
 
        static Resources *global_resources;
@@ -94,12 +93,6 @@ public:
        static Resources &get_global();
        static const DataFile::CollectionSource &get_builtins();
 
-       /** Enables or disables sRGB conversion.  If enabled, textures and material
-       colors are converted from sRGB to linear color space when loaded. */
-       DEPRECATED void set_srgb_conversion(bool);
-
-       DEPRECATED bool get_srgb_conversion() const { return srgb_conversion; }
-
        void set_resource_manager(ResourceManager *);
 
 protected: