From 97b93beb081edf83539b5ed60185087a6cb5bd5c Mon Sep 17 00:00:00 2001 From: gralkapk Date: Sat, 6 Jul 2024 11:25:37 +0200 Subject: [PATCH] fixed some warnings --- plugins/optix_hpg/cuda_resources/raygen.cu | 2 +- plugins/optix_hpg/src/optix/utils_host.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/optix_hpg/cuda_resources/raygen.cu b/plugins/optix_hpg/cuda_resources/raygen.cu index a92aa0fc0b..d3e66e140e 100644 --- a/plugins/optix_hpg/cuda_resources/raygen.cu +++ b/plugins/optix_hpg/cuda_resources/raygen.cu @@ -166,7 +166,7 @@ namespace optix_hpg { return; if (pixelID.y >= self.fbSize.y) return; - const int pixelIdx = pixelID.x + self.fbSize.x * pixelID.y; + //const int pixelIdx = pixelID.x + self.fbSize.x * pixelID.y; const FrameState* fs = &self.frameStateBuffer[0]; diff --git a/plugins/optix_hpg/src/optix/utils_host.h b/plugins/optix_hpg/src/optix/utils_host.h index b9ae63c19b..55ddcd7b8e 100644 --- a/plugins/optix_hpg/src/optix/utils_host.h +++ b/plugins/optix_hpg/src/optix/utils_host.h @@ -56,6 +56,6 @@ typedef struct RayH { glm::vec3 direction; float tMin; float tMax; -}; +} RayH; } // namespace optix_hpg } // namespace megamol