Make gfx::painter set up OpenGL state
This commit is contained in:
parent
ffd3c6a6e8
commit
2b1e772870
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue