From 592c306276e70680675441d6424e77e6c2766c17 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 14 Jan 2023 22:35:00 -0400 Subject: [PATCH] Fix images with mipmaps when ANGLE is used with an AMD gpu. --- src/modules/graphics/opengl/OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/OpenGL.cpp b/src/modules/graphics/opengl/OpenGL.cpp index c23966c55..6bf80f3c1 100644 --- a/src/modules/graphics/opengl/OpenGL.cpp +++ b/src/modules/graphics/opengl/OpenGL.cpp @@ -154,7 +154,7 @@ bool OpenGL::initContext() if (getVendor() == VENDOR_AMD) { bugs.clearRequiresDriverTextureStateUpdate = true; - if (!gl.isCoreProfile()) + if (!gl.isCoreProfile() && !GLAD_ES_VERSION_2_0) bugs.generateMipmapsRequiresTexture2DEnable = true; } #endif