diff --git a/src/player/Player.cpp b/src/player/Player.cpp index 2362ae970..23c47ce19 100644 --- a/src/player/Player.cpp +++ b/src/player/Player.cpp @@ -1111,7 +1111,7 @@ Float Player::depthAt(const Vector2i& position) { GL::defaultFramebuffer.mapForRead(GL::DefaultFramebuffer::ReadAttachment::Front); Image2D image = GL::defaultFramebuffer.read(area, {GL::PixelFormat::DepthComponent, GL::PixelType::Float}); - return Math::min(Containers::arrayCast(image.data())); + return Math::min(Containers::arrayCast(image.data())); /* On WebGL we first need to resolve the multisampled backbuffer depth to a texture -- that needs to be done right in the draw event otherwise the