video_core: disable glTextureBarrier for GLES

GLES doesn't support it
This commit is contained in:
BreadFish64 2020-03-16 21:23:01 -05:00 committed by bunnei
parent 209bf41ea9
commit c76da1b975

View File

@ -61,7 +61,7 @@ RasterizerOpenGL::RasterizerOpenGL()
"Shadow might not be able to render because of unsupported OpenGL extensions."); "Shadow might not be able to render because of unsupported OpenGL extensions.");
} }
if (!(GLES || GLAD_GL_ARB_texture_barrier)) { if (!GLAD_GL_ARB_texture_barrier) {
LOG_WARNING(Render_OpenGL, LOG_WARNING(Render_OpenGL,
"ARB_texture_barrier not supported. Some games might produce artifacts."); "ARB_texture_barrier not supported. Some games might produce artifacts.");
} }
@ -850,7 +850,7 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) {
GL_TEXTURE_UPDATE_BARRIER_BIT | GL_FRAMEBUFFER_BARRIER_BIT); GL_TEXTURE_UPDATE_BARRIER_BIT | GL_FRAMEBUFFER_BARRIER_BIT);
} }
if (need_texture_barrier && (GLES || GLAD_GL_ARB_texture_barrier)) { if (need_texture_barrier && GLAD_GL_ARB_texture_barrier) {
glTextureBarrier(); glTextureBarrier();
} }