diff --git a/zenovis/xinxinoptix/optixPathTracer.cpp b/zenovis/xinxinoptix/optixPathTracer.cpp index 37cb95cfb7..5cbee114f7 100644 --- a/zenovis/xinxinoptix/optixPathTracer.cpp +++ b/zenovis/xinxinoptix/optixPathTracer.cpp @@ -1889,7 +1889,7 @@ static void buildLightSpheresGAS( PathTracerState& state, std::vector& l raii d_vertex_buffer{}; { - auto data_length = sizeof( Vertex ) * sphere_count; + auto data_length = sizeof( float4 ) * sphere_count; CUDA_CHECK( cudaMalloc( reinterpret_cast( &d_vertex_buffer.reset() ), data_length) ); CUDA_CHECK( cudaMemcpy( reinterpret_cast( (CUdeviceptr)d_vertex_buffer ), lightSpheres.data(),