diff options
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); } |