mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-19 22:14:28 +08:00
Fixed OpenGL assert on MESA OpenGL driver due to anisotropic texture filtering not supported
This commit is contained in:
parent
c3e1be7531
commit
ee64ad8d1f
@ -600,6 +600,7 @@ void GLCanvas3D::Bed::_render_prusa(const std::string &key, float theta) const
|
|||||||
|
|
||||||
#if ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES
|
#if ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES
|
||||||
GLfloat max_anisotropy = 0.0f;
|
GLfloat max_anisotropy = 0.0f;
|
||||||
|
if (glewIsSupported("GL_EXT_texture_filter_anisotropic"))
|
||||||
::glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy);
|
::glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy);
|
||||||
#endif // ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES
|
#endif // ENABLE_ANISOTROPIC_FILTER_ON_BED_TEXTURES
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user