X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fviewport.cpp;h=636f3c35c1015f9cc9612ef9d62c4f592d740692;hb=76b630bd0a147bf7c78d3380237c86b9bfc48530;hp=9e22a260eeb12072eb75ea5931be9b666009d0c1;hpb=343b4f7e7cdd53dc1eab7dc32196ae5fa604ba48;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); +} + } }