diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-16 02:49:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-18 22:30:10 +0300 |
commit | 0f292dc07265db181bd3ec13f12c48fee755f5b5 (patch) | |
tree | a8ecaf5a361103173273b471a3339efc17010794 /source/blender/gpu | |
parent | c78ea96528168760382f919b8cb6251d3faac683 (diff) |
Cleanup: GPUState: remove float variant of GPU_scissor_get
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.cc | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 4a2c90e241b..2a940b97104 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -75,8 +75,7 @@ void GPU_point_size(float size); void GPU_polygon_smooth(bool enable); void GPU_program_point_size(bool enable); void GPU_scissor(int x, int y, int width, int height); -void GPU_scissor_get_f(float coords[4]); -void GPU_scissor_get_i(int coords[4]); +void GPU_scissor_get(int coords[4]); void GPU_viewport(int x, int y, int width, int height); void GPU_viewport_size_get_f(float coords[4]); void GPU_viewport_size_get_i(int coords[4]); diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc index 794c7a3eb97..d697b465458 100644 --- a/source/blender/gpu/intern/gpu_state.cc +++ b/source/blender/gpu/intern/gpu_state.cc @@ -188,12 +188,7 @@ void GPU_viewport(int x, int y, int width, int height) glViewport(x, y, width, height); } -void GPU_scissor_get_f(float coords[4]) -{ - glGetFloatv(GL_SCISSOR_BOX, coords); -} - -void GPU_scissor_get_i(int coords[4]) +void GPU_scissor_get(int coords[4]) { glGetIntegerv(GL_SCISSOR_BOX, coords); } |