]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/framebuffer_backend.h
Make it possible to query if a framebuffer can be presented
[libs/gl.git] / source / backends / opengl / framebuffer_backend.h
index b2e936147d73ce3c707ef15cabf5cc2af2d054cf..258db95fe9bbc0438ca01f77b95f6614a5ea444e 100644 (file)
@@ -27,6 +27,8 @@ protected:
        void format_changed(const FrameFormat &);
        static void require_layered();
 
+       bool is_presentable() const { return id==0; }
+
        void resize_system(unsigned, unsigned);
        void update(unsigned) const;
        void update(unsigned, bool) const;