diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-06 20:44:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-06 20:44:35 -0800 |
| commit | f591afd402757ebe847ede5068211e34ac8a5dd1 (patch) | |
| tree | dc392307d863500f6688cfd7d0e08de57226b646 /tools | |
| parent | 43b6f5c36cbe2529d93df0e44e319a330487ed0d (diff) | |
Fix cuda texture creation bug (#2076)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx/cuda/render-cuda.cpp | 2 |
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: |
