diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-10-31 14:28:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-10-31 14:32:18 +0300 |
commit | a248c2001a0a037b921355a6caaa161c270c762f (patch) | |
tree | 81bf9d0accac55f044369feea235052cd52ea58f /source/blender/gpu | |
parent | fc12a736bbd10e488b701ad18fb70934ea8de01b (diff) |
GPU: Add glFlush and glFinish wrapper
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 3 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 4c8ad7406df..057caffd17d 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -61,4 +61,7 @@ void GPU_scissor_get_i(int coords[4]); void GPU_viewport_size_get_f(float coords[4]); void GPU_viewport_size_get_i(int coords[4]); +void GPU_flush(void); +void GPU_finish(void); + #endif /* __GPU_STATE_H__ */ diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index c7761d43548..0f07b2debc3 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -160,3 +160,13 @@ void GPU_viewport_size_get_i(int coords[4]) { glGetIntegerv(GL_VIEWPORT, coords); } + +void GPU_flush(void) +{ + glFlush(); +} + +void GPU_finish(void) +{ + glFinish(); +}
\ No newline at end of file |