WebGL: Use sampler object if it's GLES3.

This commit is contained in:
Бранимир Караџић
2022-10-13 18:29:03 -07:00
parent 3868c762f5
commit 9e7aa2d2ef
2 changed files with 10 additions and 10 deletions

View File

@@ -2921,10 +2921,10 @@ namespace bgfx { namespace gl
GL_CHECK(glGenVertexArrays(1, &m_vao) );
}
m_samplerObjectSupport = !BX_ENABLED(BX_PLATFORM_EMSCRIPTEN)
&& (m_gles3
|| s_extension[Extension::ARB_sampler_objects].m_supported
);
m_samplerObjectSupport = false
|| m_gles3
|| s_extension[Extension::ARB_sampler_objects].m_supported
;
m_shadowSamplersSupport = !!(BGFX_CONFIG_RENDERER_OPENGL || m_gles3)
|| s_extension[Extension::EXT_shadow_samplers].m_supported