GPUState: Encapsulate glFlush and glFinish inside the GLContext

Part of the Vulkan task T68990

Isolate the few remaining gl functions.
This commit is contained in:
2020-09-08 00:10:37 +02:00
parent f23400490e
commit 77f60a0931
4 changed files with 28 additions and 2 deletions

View File

@@ -97,6 +97,10 @@ class GLContext : public GPUContext {
void activate(void) override;
void deactivate(void) override;
void flush(void);
void finish(void);
void memory_statistics_get(int *total_mem, int *free_mem) override;
static inline GLStateManager *state_manager_active_get()