diff --git a/src/bgfx.cpp b/src/bgfx.cpp index e93ff0d46..39da57300 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -492,7 +492,7 @@ namespace bgfx static uint8_t parseAttrTo(char*& _ptr, char _to, uint8_t _default) { - const char* str = bx::strFind(_ptr, INT32_MAX, _to); + const char* str = bx::strFind(_ptr, _to); if (NULL != str && 3 > str-_ptr) { diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 8ad0b63c6..fcec80b67 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -970,7 +970,7 @@ namespace bgfx { namespace d3d11 } if (BX_ENABLED(BGFX_CONFIG_DEBUG_PERFHUD) - && 0 != bx::strFind(description, INT32_MAX, "PerfHUD") ) + && 0 != bx::strFind(description, "PerfHUD") ) { m_adapter = adapter; m_driverType = D3D_DRIVER_TYPE_REFERENCE; diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index d4195cace..7ec9bab61 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -711,7 +711,7 @@ namespace bgfx { namespace d3d12 } if (BX_ENABLED(BGFX_CONFIG_DEBUG_PERFHUD) - && 0 != bx::strFind(description, INT32_MAX, "PerfHUD") ) + && 0 != bx::strFind(description, "PerfHUD") ) { m_adapter = adapter; m_driverType = D3D_DRIVER_TYPE_REFERENCE; diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 941b43e92..c2f8ad867 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -551,7 +551,7 @@ namespace bgfx { namespace d3d9 } if (BX_ENABLED(BGFX_CONFIG_DEBUG_PERFHUD) - && 0 != bx::strFind(desc.Description, INT32_MAX, "PerfHUD") ) + && 0 != bx::strFind(desc.Description, "PerfHUD") ) { m_adapter = ii; m_deviceType = D3DDEVTYPE_REF;