diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-01 18:14:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-03 14:24:08 +0300 |
commit | 25de6108768ce4ea7132a5a2d88e0a93a0ea3909 (patch) | |
tree | 0c31b8626bf90d5904a74c19dff03219337b7fb4 /source/blender/gpu | |
parent | cdfae957f2471a207d0118b8643272cfea49871b (diff) |
Cleanup: redundant header, use const, short -> bool
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_select.h | 5 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_select.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/gpu/GPU_select.h b/source/blender/gpu/GPU_select.h index 6a16b5b7456..d3cb914976e 100644 --- a/source/blender/gpu/GPU_select.h +++ b/source/blender/gpu/GPU_select.h @@ -30,9 +30,10 @@ #ifndef __GPU_SELECT_H__ #define __GPU_SELECT_H__ -#include "DNA_vec_types.h" /* rcft */ #include "BLI_sys_types.h" +struct rctf; + /* flags for mode of operation */ enum { GPU_SELECT_ALL = 1, @@ -40,7 +41,7 @@ enum { GPU_SELECT_NEAREST_SECOND_PASS = 3, }; -void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, rctf *input, char mode, int oldhits); +void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, const struct rctf *input, char mode, int oldhits); bool GPU_select_load_id(unsigned int id); unsigned int GPU_select_end(void); bool GPU_select_query_check_active(void); diff --git a/source/blender/gpu/intern/gpu_select.c b/source/blender/gpu/intern/gpu_select.c index 58582232cd5..209496927de 100644 --- a/source/blender/gpu/intern/gpu_select.c +++ b/source/blender/gpu/intern/gpu_select.c @@ -72,7 +72,7 @@ static GPUQueryState g_query_state = {0}; /** * initialize and provide buffer for results */ -void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, rctf *input, char mode, int oldhits) +void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, const rctf *input, char mode, int oldhits) { g_query_state.select_is_active = true; g_query_state.query_issued = false; |