diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-24 15:42:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-24 15:42:46 +0300 |
commit | 756e664e4f4474401627d261f35e35a2b198bea6 (patch) | |
tree | 57fed6ae09e757e8ab1c917e7b753a5a2a77d8d5 /source/blender | |
parent | e59712b7c80358f7912eebd55ef08c8cc6daafc4 (diff) |
Fix T77913: Incorrect handling of negative-scale bit in DRWResourceHandle
Reviewers: fclem
Differential Revision: https://developer.blender.org/D8103
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index 01cecc338c7..8a99907e5db 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -577,7 +577,7 @@ uint32_t DRW_object_resource_id_get(Object *UNUSED(ob)) /* Handle not yet allocated. Return next handle. */ handle = DST.resource_handle; } - return handle; + return handle & ~(1 << 31); } static DRWResourceHandle drw_resource_handle(DRWShadingGroup *shgroup, |