]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/framebuffer_backend.h
Rework multisample resolve to use resolve attachments
[libs/gl.git] / source / backends / opengl / framebuffer_backend.h
index 24f43441b3aacb333821cb7d7823edf81b318153..b2e936147d73ce3c707ef15cabf5cc2af2d054cf 100644 (file)
@@ -15,6 +15,7 @@ class OpenGLFramebuffer: public NonCopyable
 
 protected:
        unsigned id = 0;
+       unsigned resolve_id = 0;
        mutable unsigned status;
 
        OpenGLFramebuffer(bool);
@@ -23,10 +24,12 @@ protected:
 
        void set_system_format(const FrameFormat &);
        static bool is_format_supported(const FrameFormat &);
+       void format_changed(const FrameFormat &);
        static void require_layered();
 
        void resize_system(unsigned, unsigned);
        void update(unsigned) const;
+       void update(unsigned, bool) const;
        void require_complete() const;
 
        void set_debug_name(const std::string &);