]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderbuffer.h
Also convert RenderBuffer formats to sized variants if possible
[libs/gl.git] / source / renderbuffer.h
index efcf5658872982f3aaf6f3ca97471c363a797ec5..0ccf49675897c6b9864da27adb708eed45c458e8 100644 (file)
@@ -31,6 +31,10 @@ public:
        unsigned get_width() const { return width; }
        unsigned get_height() const { return height; }
 
+private:
+       static PixelFormat normalize_format(PixelFormat);
+
+public:
        /** Allocates storage for the renderbuffer. */
        void storage(PixelFormat fmt, unsigned wd, unsigned ht);