|
|
@@ -2968,12 +2968,14 @@ namespace bgfx { namespace gl
|
|
|
|| s_extension[Extension::EXT_shadow_samplers].m_supported
|
|
|
;
|
|
|
|
|
|
+ GLint numFormats = 0;
|
|
|
+ GL_CHECK(glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &numFormats) );
|
|
|
m_programBinarySupport = !BX_ENABLED(BX_PLATFORM_EMSCRIPTEN)
|
|
|
&& (m_gles3
|
|
|
|| s_extension[Extension::ARB_get_program_binary].m_supported
|
|
|
|| s_extension[Extension::OES_get_program_binary].m_supported
|
|
|
|| s_extension[Extension::IMG_shader_binary ].m_supported
|
|
|
- );
|
|
|
+ ) && numFormats > 0;
|
|
|
|
|
|
m_textureSwizzleSupport = false
|
|
|
|| s_extension[Extension::ARB_texture_swizzle].m_supported
|