This commit is contained in:
Branimir Karadžić 2017-10-01 23:24:13 -07:00
parent c6e5062067
commit 3e09c0b44a
4 changed files with 4 additions and 4 deletions

View File

@ -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)
{

View File

@ -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;

View File

@ -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;

View File

@ -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;