Mercurial > octave
changeset 27767:3212c50369cb
Make graphics antialiasing and blending independent (bug #57343)
* gl-render.cc (opengl_renderer::init_gl_context): Enable GL_BLEND whatever the
value of "enhanced" variable.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Mon, 02 Dec 2019 18:23:12 +0100 |
parents | 0ca7f17de041 |
children | d6701f835496 |
files | libinterp/corefcn/gl-render.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc Mon Dec 02 18:20:28 2019 -0600 +++ b/libinterp/corefcn/gl-render.cc Mon Dec 02 18:23:12 2019 +0100 @@ -834,10 +834,10 @@ m_glfcns.glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); m_glfcns.glAlphaFunc (GL_GREATER, 0.0f); m_glfcns.glEnable (GL_NORMALIZE); + m_glfcns.glEnable (GL_BLEND); if (enhanced) { - m_glfcns.glEnable (GL_BLEND); m_glfcns.glEnable (GL_MULTISAMPLE); bool has_multisample = false; if (! m_glfcns.glGetError ()) @@ -863,7 +863,6 @@ } else { - m_glfcns.glDisable (GL_BLEND); m_glfcns.glDisable (GL_LINE_SMOOTH); }