mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 05:23:00 +01:00
Fixed discard primitive logic.
This commit is contained in:
10
src/bgfx.cpp
10
src/bgfx.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user