X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finit.cpp;h=061e848e073691af5fcedca51763e4af97c91a80;hb=2d5671c2ef977defae9ce0ce7248582ab3e8f011;hp=2c1c73ad6155e0aae9654f9fa9a58f6c93477fe2;hpb=6af76d9e1a6499ebdab405c1d679d24b9e19fded;p=blank.git diff --git a/src/init.cpp b/src/init.cpp index 2c1c73a..061e848 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -151,6 +151,10 @@ void GLContext::Clear() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } +void GLContext::ClearDepthBuffer() { + glClear(GL_DEPTH_BUFFER_BIT); +} + InitGLEW::InitGLEW() { glewExperimental = GL_TRUE;