mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user