Cleanup.
This commit is contained in:
parent
c6e5062067
commit
3e09c0b44a
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user