From ee64ad8d1f169101c6cc999e5c24d3202ea8636a Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 5 Feb 2019 14:02:48 +0100 Subject: [PATCH] Fixed OpenGL assert on MESA OpenGL driver due to anisotropic texture filtering not supported --- src/slic3r/GUI/GLCanvas3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 84a2b61cf..f043deda5 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -600,7 +600,8 @@ void GLCanvas3D::Bed::_render_prusa(const std::string &key, float theta) const #if ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES GLfloat max_anisotropy = 0.0f; - ::glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy); + if (glewIsSupported("GL_EXT_texture_filter_anisotropic")) + ::glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy); #endif // ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES std::string filename = tex_path + "_top.png";