summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-01-06 20:44:35 -0800
committerGitHub <noreply@github.com>2022-01-06 20:44:35 -0800
commitf591afd402757ebe847ede5068211e34ac8a5dd1 (patch)
treedc392307d863500f6688cfd7d0e08de57226b646
parent43b6f5c36cbe2529d93df0e44e319a330487ed0d (diff)
Fix cuda texture creation bug (#2076)
Co-authored-by: Yong He <yhe@nvidia.com>
-rw-r--r--tools/gfx/cuda/render-cuda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp
index a0e0e8761..4b9f52a55 100644
--- a/tools/gfx/cuda/render-cuda.cpp
+++ b/tools/gfx/cuda/render-cuda.cpp
@@ -1567,7 +1567,7 @@ public:
}
case CU_AD_FORMAT_UNSIGNED_INT8:
{
- elementSize = sizeof(uint32_t) * numChannels;
+ elementSize = sizeof(uint8_t) * numChannels;
break;
}
default: