ClearBuffer(): Clear depth to 1.0

This commit is contained in:
raven02 2014-01-01 22:49:50 +08:00
parent 965d1890ab
commit 5d05b4f16a

View File

@ -157,6 +157,7 @@ static void ClearBuffer() {
glstate.stencilFunc.set(GL_ALWAYS, 0xFF, 0xFF);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearStencil(0xFF);
glClearDepth(1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}