X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fframebuffer.cpp;fp=source%2Fframebuffer.cpp;h=c90bb22469da6b7633ac405d1dc2884d85ef61aa;hp=659b14e7d819c9db635fb2e3469c9403fd0affc6;hb=8697b05bf71c49882fe15d53aa4f502aa2b5f9a3;hpb=cbd2f2d0990d1e6c76cde38b17ac8eb1bc90dbf8 diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index 659b14e7..c90bb224 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -308,6 +308,11 @@ void Framebuffer::reset_viewport() viewport(0, 0, width, height); } +void Framebuffer::clear() +{ + clear(COLOR_BUFFER_BIT|DEPTH_BUFFER_BIT|STENCIL_BUFFER_BIT); +} + void Framebuffer::clear(BufferBits bits) { BindRestore _bind(this);