Skip to content

Commit

Permalink
player: adapted to Magnum changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed May 25, 2019
1 parent c001a5a commit c807881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/Player.cpp
Expand Up @@ -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<const Float>(image.data()));
return Math::min<Float>(Containers::arrayCast<const Float>(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
Expand Down

0 comments on commit c807881

Please sign in to comment.