Commit da228a0f authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Get correct depth buffer from pre rendered image.

There was a bug in icetImageGetDepthConstVoid that caused IceT to use
the wrong buffer when retrieving the depth, which resulted in completely
incorrect depth values.
parent 8e5447bf
......@@ -856,7 +856,7 @@ const IceTVoid *icetImageGetDepthConstVoid(const IceTImage image,
return image_data_pointer + color_format_bytes;
}
case ICET_IMAGE_POINTERS_MAGIC_NUM:
return ((const IceTVoid **)ICET_IMAGE_DATA(image))[0];
return ((const IceTVoid **)ICET_IMAGE_DATA(image))[1];
default:
icetRaiseError("Detected invalid image header.",
ICET_SANITY_CHECK_FAIL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment