X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=4775999310d1bb6b2bdd44998725597a6011539e;hb=2c2c02796e9df82d0cda12b59aad638d40b4e8b4;hp=8e48f143b5c006f7aea3db4db9563b3c9cc05058;hpb=55dbd6b35a39888f245e247d2e140f141f918178;p=blank.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 8e48f14..4775999 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -89,10 +89,12 @@ void HUD::Render(DirectionalLighting &world_prog, BlendedSprite &sprite_prog) no world_prog.SetFogDensity(0.0f); GLContext::ClearDepthBuffer(); + GLContext::EnableInvertBlending(); world_prog.SetMVP(crosshair_transform, view, projection); crosshair.Draw(); if (block_visible) { + GLContext::DisableBlending(); world_prog.SetM(block_transform); block.Draw();