diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp index 851b06188..9c3b23222 100644 --- a/src/libGLESv2/Context.cpp +++ b/src/libGLESv2/Context.cpp @@ -2164,7 +2164,7 @@ void Context::clear(GLbitfield mask) device->Clear(0, NULL, D3DCLEAR_ZBUFFER, color, depth, stencil); } } - else + else if (flags) { device->Clear(0, NULL, flags, color, depth, stencil); }