Skip to content

Commit

Permalink
fix ptr capture
Browse files Browse the repository at this point in the history
  • Loading branch information
iaomw committed Oct 14, 2024
1 parent e0c02c0 commit aeec9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenovis/xinxinoptix/OptiXStuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ inline void addTexture(std::string path, bool blockCompression=false, TaskType*
tex_lut[tex_key] = makeCudaTexture((unsigned char *)data.data(), nx, ny, 4, blockCompression);
}

lookupTexture = [&img](uint32_t idx) {
lookupTexture = [img=img](uint32_t idx) {
auto ptr = (float*)img->verts->data();
return ptr[idx];
};
Expand Down

0 comments on commit aeec9de

Please sign in to comment.