Minor optimization
This commit is contained in:
parent
fc0a0e3090
commit
7fbbdf7686
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue