mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Removed s_primNumVerts.
This commit is contained in:
parent
e3b0a82f0d
commit
b2bde26fed
3 changed files with 4 additions and 25 deletions
|
@ -17,13 +17,6 @@ namespace bgfx
|
|||
D3D11_PRIMITIVE_TOPOLOGY_POINTLIST,
|
||||
};
|
||||
|
||||
static const uint32_t s_primNumVerts[] =
|
||||
{
|
||||
3,
|
||||
2,
|
||||
1,
|
||||
};
|
||||
|
||||
static const D3D11_BLEND s_blendFactor[][2] =
|
||||
{
|
||||
{ (D3D11_BLEND)0, (D3D11_BLEND)0 }, // ignored
|
||||
|
@ -1965,7 +1958,7 @@ namespace bgfx
|
|||
if (primType != s_primType[primIndex])
|
||||
{
|
||||
primType = s_primType[primIndex];
|
||||
primNumVerts = s_primNumVerts[primIndex];
|
||||
primNumVerts = 3-primIndex;
|
||||
deviceCtx->IASetPrimitiveTopology(primType);
|
||||
}
|
||||
}
|
||||
|
@ -2000,7 +1993,7 @@ namespace bgfx
|
|||
if (primType != s_primType[primIndex])
|
||||
{
|
||||
primType = s_primType[primIndex];
|
||||
primNumVerts = s_primNumVerts[primIndex];
|
||||
primNumVerts = 3-primIndex;
|
||||
deviceCtx->IASetPrimitiveTopology(primType);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,13 +17,6 @@ namespace bgfx
|
|||
D3DPT_POINTLIST,
|
||||
};
|
||||
|
||||
static const uint32_t s_primNumVerts[] =
|
||||
{
|
||||
3,
|
||||
2,
|
||||
1,
|
||||
};
|
||||
|
||||
static const D3DMULTISAMPLE_TYPE s_checkMsaa[] =
|
||||
{
|
||||
D3DMULTISAMPLE_NONE,
|
||||
|
@ -2175,7 +2168,7 @@ namespace bgfx
|
|||
|
||||
uint8_t primIndex = uint8_t( (newFlags&BGFX_STATE_PT_MASK)>>BGFX_STATE_PT_SHIFT);
|
||||
primType = s_primType[primIndex];
|
||||
primNumVerts = s_primNumVerts[primIndex];
|
||||
primNumVerts = 3-primIndex;
|
||||
}
|
||||
|
||||
bool programChanged = false;
|
||||
|
|
|
@ -703,13 +703,6 @@ namespace bgfx
|
|||
GL_POINTS,
|
||||
};
|
||||
|
||||
static const uint32_t s_primNumVerts[] =
|
||||
{
|
||||
3,
|
||||
2,
|
||||
1,
|
||||
};
|
||||
|
||||
static const char* s_attribName[Attrib::Count] =
|
||||
{
|
||||
"a_position",
|
||||
|
@ -2526,7 +2519,7 @@ namespace bgfx
|
|||
|
||||
uint8_t primIndex = uint8_t( (newFlags&BGFX_STATE_PT_MASK)>>BGFX_STATE_PT_SHIFT);
|
||||
primType = m_render->m_debug&BGFX_DEBUG_WIREFRAME ? GL_LINES : s_primType[primIndex];
|
||||
primNumVerts = s_primNumVerts[primIndex];
|
||||
primNumVerts = 3-primIndex;
|
||||
}
|
||||
|
||||
bool programChanged = false;
|
||||
|
|
Loading…
Reference in a new issue