From 80b8d6601755b95915beb5c4bee04118ee91ae89 Mon Sep 17 00:00:00 2001 From: SachinVin Date: Thu, 29 Apr 2021 00:57:22 +0530 Subject: [PATCH] gl_rasterizer.cpp: don't check for GL_ARB_copy_image when using GLES --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 7170f61c2..4a331c630 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -62,7 +62,7 @@ RasterizerOpenGL::RasterizerOpenGL() "Shadow might not be able to render because of unsupported OpenGL extensions."); } - if (!GLAD_GL_ARB_copy_image) { + if (!GLAD_GL_ARB_copy_image && !GLES) { LOG_WARNING(Render_OpenGL, "ARB_copy_image not supported. Some games might produce artifacts."); } @@ -782,7 +782,7 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) { } OGLTexture temp_tex; - if (need_duplicate_texture && GLAD_GL_ARB_copy_image) { + if (need_duplicate_texture && (GLAD_GL_ARB_copy_image || GLES)) { // The game is trying to use a surface as a texture and framebuffer at the same time // which causes unpredictable behavior on the host. // Making a copy to sample from eliminates this issue and seems to be fairly cheap.