Make gfx::painter set up OpenGL state

This commit is contained in:
Nikita Lisitsa 2020-12-14 13:44:25 +03:00
parent ffd3c6a6e8
commit 2b1e772870

View file

@ -522,6 +522,11 @@ namespace psemek::gfx
gl::Disable(gl::CULL_FACE);
gl::Enable(gl::BLEND);
gl::BlendFunc(gl::SRC_ALPHA, gl::ONE_MINUS_SRC_ALPHA);
gl::Disable(gl::DEPTH_TEST);
impl().mesh.load(impl().vertices, impl().indices, gl::TRIANGLES, gl::STREAM_DRAW);
impl().vertices.clear();
impl().indices.clear();