Fixed discard primitive logic.

This commit is contained in:
bkaradzic
2013-07-29 19:01:29 -07:00
parent ebd1595b23
commit a09f804ac3
3 changed files with 31 additions and 2 deletions

View File

@@ -529,7 +529,7 @@ namespace bgfx
{
if (m_discard)
{
m_discard = false;
discard();
return;
}
@@ -566,7 +566,7 @@ namespace bgfx
{
if (m_discard)
{
m_discard = false;
discard();
return;
}
@@ -1496,6 +1496,12 @@ namespace bgfx
s_ctx.m_submit->submitMask(_viewMask, _depth);
}
void discard()
{
BGFX_CHECK_MAIN_THREAD();
s_ctx.m_submit->discard();
}
void saveScreenShot(const char* _filePath)
{
BGFX_CHECK_MAIN_THREAD();