Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-11-28 09:20:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-28 09:20:23 +0300
commitc2863326afd41e3b07b44f27177e7f7b0692dab4 (patch)
tree27c6d2605a0293469a0f120bd23e032ff2087d8a /source/blender/gpu/intern/gpu_select_pick.c
parentca05985ca72ecb33f81d25976ee56903dab892dc (diff)
Cleanup: correct assert, remove redundant NULL checks
Diffstat (limited to 'source/blender/gpu/intern/gpu_select_pick.c')
-rw-r--r--source/blender/gpu/intern/gpu_select_pick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c
index fecac55087f..9b64d48fe50 100644
--- a/source/blender/gpu/intern/gpu_select_pick.c
+++ b/source/blender/gpu/intern/gpu_select_pick.c
@@ -86,7 +86,7 @@ static void rect_subregion_stride_calc(const rcti *src, const rcti *dst, SubRect
const int y = dst->ymin - src->ymin;
BLI_assert(src->xmin <= dst->xmin && src->ymin <= dst->ymin &&
- src->ymax >= dst->ymax && src->ymax >= dst->ymax);
+ src->xmax >= dst->xmax && src->ymax >= dst->ymax);
BLI_assert(x >= 0 && y >= 0);
r_sub->start = (uint)((src_x * y) + x);