]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/commands_backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / commands_backend.h
index f54b27a11c1947cd3fd2e2e357a43b488a677b3d..94ddc56026f6cb8c6e9fb9960ec8267566d4efbc 100644 (file)
@@ -13,15 +13,19 @@ class QueryPool;
 class OpenGLCommands
 {
 protected:
-       const PipelineState *pipeline_state;
+       const PipelineState *pipeline_state = 0;
 
-       OpenGLCommands();
+       OpenGLCommands() = default;
+
+       void begin_frame(unsigned) { }
+       void submit_frame();
 
        void use_pipeline(const PipelineState *);
        void clear(const ClearValue *);
        void draw(const Batch &);
        void draw_instanced(const Batch &, unsigned);
-       void resolve_multisample(Framebuffer &);
+       void dispatch(unsigned, unsigned, unsigned);
+       void resolve_multisample();
 
        void begin_query(const QueryPool &, unsigned);
        void end_query(const QueryPool &, unsigned);