From f69fcbb78379544a2e31f0a0ddcf1150f49935ad Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 5 Sep 2024 17:41:55 +0800 Subject: [PATCH] chore: use float instead of float32_t in FilamentViewer --- thermion_dart/native/src/FilamentViewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thermion_dart/native/src/FilamentViewer.cpp b/thermion_dart/native/src/FilamentViewer.cpp index 25a6accf..15c35c30 100644 --- a/thermion_dart/native/src/FilamentViewer.cpp +++ b/thermion_dart/native/src/FilamentViewer.cpp @@ -1071,7 +1071,7 @@ namespace thermion_filament .build(*_engine); // Create a copy of the cubemap data - float32_t *pixelData = new float32_t[18] { + float *pixelData = new float[18] { r, g, b, r, g, b, r, g, b, @@ -1082,12 +1082,12 @@ namespace thermion_filament Texture::PixelBufferDescriptor::Callback freeCallback = [](void *buf, size_t, void *data) { - delete[] reinterpret_cast(data); + delete[] reinterpret_cast(data); }; auto pbd = Texture::PixelBufferDescriptor( pixelData, - 18 * sizeof(float32_t), + 18 * sizeof(float), Texture::Format::RGB, Texture::Type::FLOAT, freeCallback,