X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fviewport.cpp;h=636f3c35c1015f9cc9612ef9d62c4f592d740692;hb=2025d49798b93180237b6ce62d3ff5d6ee8ebc6e;hp=9e22a260eeb12072eb75ea5931be9b666009d0c1;hpb=98770f59a02c76f02de0a46ed36d9cfd52f5071b;p=blobs.git diff --git a/src/graphics/viewport.cpp b/src/graphics/viewport.cpp index 9e22a26..636f3c3 100644 --- a/src/graphics/viewport.cpp +++ b/src/graphics/viewport.cpp @@ -152,5 +152,9 @@ void Viewport::Clear() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } +void Viewport::ClearDepth() { + glClear(GL_DEPTH_BUFFER_BIT); +} + } }