This commit is contained in:
Branimir Karadžić 2017-05-18 17:44:31 -07:00
parent f0a69b6aa5
commit b0a122449c
2 changed files with 4 additions and 1 deletions

View File

@ -4096,6 +4096,7 @@ namespace bgfx
BGFX_API_FUNC(uint32_t dispatch(uint8_t _id, ProgramHandle _handle, uint16_t _numX, uint16_t _numY, uint16_t _numZ, uint8_t _flags) )
{
BGFX_CHECK_HANDLE_INVALID_OK("dispatch", m_programHandle, _handle);
if (BX_ENABLED(BGFX_CONFIG_DEBUG_UNIFORM) )
{
m_uniformSet.clear();
@ -4105,6 +4106,8 @@ namespace bgfx
BGFX_API_FUNC(uint32_t dispatch(uint8_t _id, ProgramHandle _handle, IndirectBufferHandle _indirectHandle, uint16_t _start, uint16_t _num, uint8_t _flags) )
{
BGFX_CHECK_HANDLE_INVALID_OK("dispatch", m_programHandle, _handle);
BGFX_CHECK_HANDLE("dispatch", m_vertexBufferHandle, _indirectHandle);
if (BX_ENABLED(BGFX_CONFIG_DEBUG_UNIFORM) )
{
m_uniformSet.clear();

View File

@ -5535,7 +5535,7 @@ namespace bgfx { namespace gl
if (usesTextureLod)
{
BX_WARN(s_extension[Extension::ARB_shader_texture_lod].m_supported
|| s_extension[Extension::EXT_shader_texture_lod].m_supported
|| s_extension[Extension::EXT_shader_texture_lod].m_supported
, "(ARB|EXT)_shader_texture_lod is used but not supported by GLES2 driver."
);