Skip to content
Snippets Groups Projects
Commit 4964433b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Additional safety check in screen.cu

parent f2fff2f4
No related branches found
No related tags found
No related merge requests found
Pipeline #29133 failed
......@@ -65,6 +65,7 @@ __device__ inline uint2 convertToScreen<ViewPortMode::Warping>(const Parameters
if ( screenPos.z < params.camera.minDepth ||
screenPos.z > params.camera.maxDepth ||
//!vp.inside(screenPos.x, screenPos.y))
screenPos.x < 0.0f || screenPos.y < 0.0f ||
screenPos.x >= params.camera.width ||
screenPos.y >= params.camera.height)
screenPos = make_float3(30000,30000,0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment