]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
fancy crosshair
[blank.git] / src / ui / ui.cpp
index 8e48f143b5c006f7aea3db4db9563b3c9cc05058..4775999310d1bb6b2bdd44998725597a6011539e 100644 (file)
@@ -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();