gsdx-ogl: always issue a barrier when requested

Safer this way
This commit is contained in:
Gregory Hainaut 2015-07-25 17:10:45 +02:00
parent 28fbae4791
commit aa8f5848d1
1 changed files with 5 additions and 1 deletions

View File

@ -348,7 +348,11 @@ void GSRendererOGL::SendDraw(bool require_barrier)
{
GSDeviceOGL* dev = (GSDeviceOGL*)m_dev;
if (!require_barrier || (m_prim_overlap == PRIM_OVERLAP_NO)) {
if (!require_barrier) {
dev->DrawIndexedPrimitive();
} else if (m_prim_overlap == PRIM_OVERLAP_NO) {
ASSERT(GLLoader::found_GL_ARB_texture_barrier);
gl_TextureBarrier();
dev->DrawIndexedPrimitive();
} else {
ASSERT(GLLoader::found_geometry_shader);