On desktop GL, emulate glClearDepthf if it's not available

This commit is contained in:
baldurk
2018-10-17 15:50:52 +01:00
parent 2b5a961308
commit f3ab6409c0
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -642,6 +642,7 @@ extern bool IsGLES;
EXT_TO_CHECK(32, 32, ARB_geometry_shader4) \
EXT_TO_CHECK(41, 31, ARB_separate_shader_objects) \
EXT_TO_CHECK(41, 99, ARB_viewport_array) \
EXT_TO_CHECK(41, 99, ARB_ES2_compatibility) \
EXT_TO_CHECK(42, 99, ARB_base_instance) \
EXT_TO_CHECK(42, 31, ARB_shader_atomic_counters) \
EXT_TO_CHECK(42, 31, ARB_shader_image_load_store) \
@@ -2053,6 +2053,13 @@ void GLDispatchTable::EmulateRequiredExtensions()
EMULATE_FUNC(glClearBufferSubData);
}
// really silly case, we just forward to non-float version
if(!IsGLES && !HasExt[ARB_ES2_compatibility])
{
RDCLOG("Emulating ARB_ES2_compatibility");
EMULATE_FUNC(glClearDepthf);
}
// we manually implement these queries
if(!HasExt[ARB_internalformat_query2])
{