mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
On desktop GL, emulate glClearDepthf if it's not available
This commit is contained in:
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user