From d55d3955df5c6c127800e00c678ec41d028a9547 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 29 Dec 2022 21:44:26 +0100 Subject: [PATCH] update Dr.Jit-Core repository --- ext/drjit-core | 2 +- include/drjit/texture.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/drjit-core b/ext/drjit-core index 50632a3a7..6009dc0a0 160000 --- a/ext/drjit-core +++ b/ext/drjit-core @@ -1 +1 @@ -Subproject commit 50632a3a79dfbd734defc893ace22827b6a245ed +Subproject commit 6009dc0a04b42fa93925337339eeac110b76fa9e diff --git a/include/drjit/texture.h b/include/drjit/texture.h index e3cc0fd6f..c45c78f76 100644 --- a/include/drjit/texture.h +++ b/include/drjit/texture.h @@ -477,10 +477,10 @@ template class Texture { out_idx); for (size_t ch = 0; ch < channels; ++ch) { - out[2][ch] = Value::steal(out_idx[ch]); - out[3][ch] = Value::steal(out_idx[channels + ch]); - out[1][ch] = Value::steal(out_idx[2 * channels + ch]); - out[0][ch] = Value::steal(out_idx[3 * channels + ch]); + out[2][ch] = Value::steal(out_idx[ch*4 + 0]); + out[3][ch] = Value::steal(out_idx[ch*4 + 1]); + out[1][ch] = Value::steal(out_idx[ch*4 + 2]); + out[0][ch] = Value::steal(out_idx[ch*4 + 3]); } } else if constexpr (Dimension == 3) { const PosF res_f = PosF(m_shape_opaque);