Blender Git Commit Log

Git Commits -> Revision 5f31fc9

July 6, 2016, 01:35 (GMT)
Render API: Fix bugs regarding pass handling when Cycles debugging is enabled

The probem here was that regular passes are stored as (signed) integers.
Therefore, the pass with bit 31 set (the Cycles debug pass) is stored as -1.
On its own, that's fine - however, when that pass type is implicitly cast to uint64_t
in a function call, the compiler apparently first sign-extends it and then reinterprets
it as unsigned, so the result is 0xffffffff80000000 instead of only bit 31.
To get around that issue, the type is now explicitly cast to a unsigned int32 first and
then implicitly extended to uint64_t.

Commit Details:

Full Hash: 5f31fc951e23b023e26b91afba6e0c4267a3e375
Parent Commit: 84b4575
Lines Changed: +3, -3

2 Modified Paths:

/source/blender/editors/space_image/image_buttons.c (+1, -1) (Diff)
/source/blender/render/intern/source/render_result.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021