From a75c4d283d575362cbefeae25477dfde607de594 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 27 Aug 2015 19:28:10 +0200 Subject: [PATCH] GL: Check for ARB_conservative_depth --- gfx_es2/gl_state.cpp | 1 + gfx_es2/gpu_features.h | 1 + 2 files changed, 2 insertions(+) diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index 90045eafd6..8923d50ac5 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -258,6 +258,7 @@ void CheckGLExtensions() { gl_extensions.NV_draw_texture = strstr(extString, "GL_NV_draw_texture") != 0; gl_extensions.ARB_blend_func_extended = strstr(extString, "GL_ARB_blend_func_extended") != 0; + gl_extensions.ARB_conservative_depth = strstr(extString, "GL_ARB_conservative_depth") != 0; gl_extensions.ARB_shader_image_load_store = (strstr(extString, "GL_ARB_shader_image_load_store") != 0) || (strstr(extString, "GL_EXT_shader_image_load_store") != 0); gl_extensions.EXT_bgra = strstr(extString, "GL_EXT_bgra") != 0; gl_extensions.EXT_gpu_shader4 = strstr(extString, "GL_EXT_gpu_shader4") != 0; diff --git a/gfx_es2/gpu_features.h b/gfx_es2/gpu_features.h index cf86c6f7a4..d4207970c8 100644 --- a/gfx_es2/gpu_features.h +++ b/gfx_es2/gpu_features.h @@ -49,6 +49,7 @@ struct GLExtensions { bool PBO_ARB; bool ARB_blend_func_extended; // dual source blending bool ARB_shader_image_load_store; + bool ARB_conservative_depth; // EXT bool EXT_swap_control_tear;