From 3c7a3a3d836561ac1e0c6db30edbe4568d203d3c Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 9 May 2015 18:33:28 +0200 Subject: [PATCH] gsdx-ogl: disable accurate option if driver doesn't support it --- plugins/GSdx/GLLoader.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index b7ef058879..1ceacae514 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -493,12 +493,25 @@ namespace GLLoader { if (!found_GL_ARB_direct_state_access) { Emulate_DSA::Init(); } - if (gl_BindTextureUnit == NULL) { fprintf(stderr, "FATAL ERROR !!!! Failed to setup DSA function pointer!!!\n"); status = false; } + if (!found_GL_ARB_texture_barrier) { + if (theApp.GetConfig("accurate_blend", 0)) { + fprintf(stderr, "Error GL_ARB_texture_barrier is not supported by your driver so you can't enable accurate_blend! Sorry.\n"); + theApp.SetConfig("accurate_blend", 0); + } + } + if (!found_GL_ARB_shader_image_load_store) { + if (theApp.GetConfig("accurate_date", 0)) { + fprintf(stderr, "Error GL_ARB_shader_image_load_store is not supported by your driver so you can't enable accurate_date! Sorry.\n"); + theApp.SetConfig("accurate_date", 0); + } + } + + fprintf(stderr, "\n"); return status;