From f591afd402757ebe847ede5068211e34ac8a5dd1 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 6 Jan 2022 20:44:35 -0800 Subject: Fix cuda texture creation bug (#2076) Co-authored-by: Yong He --- tools/gfx/cuda/render-cuda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/cuda/render-cuda.cpp') 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: -- cgit v1.2.3