Minor optimization

This commit is contained in:
Thinkofname 2016-03-28 00:50:30 +01:00
parent fc0a0e3090
commit 7fbbdf7686
2 changed files with 1 additions and 1 deletions

View File

@ -189,6 +189,7 @@ impl Renderer {
// Clouds
gl::blend_func(gl::SRC_ALPHA, gl::ONE_MINUS_SRC_ALPHA);
gl::depth_func(gl::LESS_OR_EQUAL);
Renderer {
resource_version: version,

View File

@ -144,7 +144,6 @@ impl UIState {
}
// Prevent clipping with the world
gl::clear(gl::ClearFlags::Depth);
gl::depth_func(gl::LESS_OR_EQUAL);
gl::enable(gl::BLEND);
gl::blend_func(gl::SRC_ALPHA, gl::ONE_MINUS_SRC_ALPHA);