diff --git a/src/glimports.h b/src/glimports.h index da4bcc77a..5a687bbf4 100644 --- a/src/glimports.h +++ b/src/glimports.h @@ -586,12 +586,12 @@ GL_IMPORT_____x(true, PFNGLBLENDFUNCSEPARATEIPROC, glBlendFuncSe GL_IMPORT______(true, PFNGLDRAWBUFFERPROC, glDrawBuffer); GL_IMPORT______(true, PFNGLREADBUFFERPROC, glReadBuffer); -GL_IMPORT_____x(true, PFNGLGENSAMPLERSPROC, glGenSamplers); -GL_IMPORT_____x(true, PFNGLDELETESAMPLERSPROC, glDeleteSamplers); -GL_IMPORT_____x(true, PFNGLBINDSAMPLERPROC, glBindSampler); -GL_IMPORT_____x(true, PFNGLSAMPLERPARAMETERFPROC, glSamplerParameterf); -GL_IMPORT_____x(true, PFNGLSAMPLERPARAMETERIPROC, glSamplerParameteri); -GL_IMPORT_____x(true, PFNGLSAMPLERPARAMETERFVPROC, glSamplerParameterfv); +GL_IMPORT______(true, PFNGLGENSAMPLERSPROC, glGenSamplers); +GL_IMPORT______(true, PFNGLDELETESAMPLERSPROC, glDeleteSamplers); +GL_IMPORT______(true, PFNGLBINDSAMPLERPROC, glBindSampler); +GL_IMPORT______(true, PFNGLSAMPLERPARAMETERFPROC, glSamplerParameterf); +GL_IMPORT______(true, PFNGLSAMPLERPARAMETERIPROC, glSamplerParameteri); +GL_IMPORT______(true, PFNGLSAMPLERPARAMETERFVPROC, glSamplerParameterfv); GL_IMPORT_____x(true, PFNGLBINDBUFFERBASEPROC, glBindBufferBase); GL_IMPORT_____x(true, PFNGLBINDBUFFERRANGEPROC, glBindBufferRange); diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index d651b3f34..0e8d5b555 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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