diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-03-28 20:17:00 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-03-28 20:19:21 +0300 |
commit | d5cb425b874561816ee52826d71c6f5e2229aa4d (patch) | |
tree | d9292c9467577a6423db82ed170eca5e376a7c4e /source/blender/gpu/GPU_select.h | |
parent | dfa470ec336976eeca309909ee7ae19261431130 (diff) |
Possible fix for T62999: Crash when select in edit mode.
Apparently some drivers don't allow `glReadPixel` read out pixels of texture boundaries.
Intersect `rect` to avoid such cases.
Diffstat (limited to 'source/blender/gpu/GPU_select.h')
-rw-r--r-- | source/blender/gpu/GPU_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_select.h b/source/blender/gpu/GPU_select.h index e1396b49c15..b9dbeeccf30 100644 --- a/source/blender/gpu/GPU_select.h +++ b/source/blender/gpu/GPU_select.h @@ -52,5 +52,6 @@ void GPU_select_cache_end(void); /* utilities */ const uint *GPU_select_buffer_near(const uint *buffer, int hits); +void GPU_select_buffer_stride_realign(const struct rcti *src, const struct rcti *dst, uint *r_buf); #endif |