gsdx-ogl: disable accurate option if driver doesn't support it

This commit is contained in:
Gregory Hainaut 2015-05-09 18:33:28 +02:00
parent 7fac25edb0
commit 3c7a3a3d83
1 changed files with 14 additions and 1 deletions

View File

@ -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;