From cdf8cd83d5aa69c71e378c045a9037e77a16bb3d Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 26 Apr 2023 12:31:59 +0200 Subject: [PATCH] Follow-up of 6e7fefbabf067cfe1a54b638e16e494218432276 - Force using glGeneratedMipmap() function on AMD Custom cards, no matter what's the installed driver (Windows only) --- src/slic3r/GUI/OpenGLManager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/OpenGLManager.cpp b/src/slic3r/GUI/OpenGLManager.cpp index 447da442ef..f0713932db 100644 --- a/src/slic3r/GUI/OpenGLManager.cpp +++ b/src/slic3r/GUI/OpenGLManager.cpp @@ -419,9 +419,12 @@ bool OpenGLManager::init_gl() // There is no an easy way to detect the driver version without using Win32 API because the strings returned by OpenGL // have no standardized format, only some of them contain the driver version. // Until we do not know that driver will be fixed (if ever) we force the use of power of two textures on all cards - // containing the string 'Radeon' in the string returned by glGetString(GL_RENDERER) + // 1) containing the string 'Radeon' in the string returned by glGetString(GL_RENDERER) + // 2) containing the string 'Custom' in the string returned by glGetString(GL_RENDERER) const auto& gl_info = OpenGLManager::get_gl_info(); - if (boost::contains(gl_info.get_vendor(), "ATI Technologies Inc.") && boost::contains(gl_info.get_renderer(), "Radeon")) + if (boost::contains(gl_info.get_vendor(), "ATI Technologies Inc.") && + (boost::contains(gl_info.get_renderer(), "Radeon") || + boost::contains(gl_info.get_renderer(), "Custom"))) s_force_power_of_two_textures = true; #endif // _WIN32 }