mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Cleanup.
This commit is contained in:
parent
6aa6efda12
commit
679764f3ef
2 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,7 @@ class HDR : public entry::AppI
|
|||
m_blur = bgfx::createFrameBuffer(bgfx::BackbufferRatio::Eighth, bgfx::TextureFormat::BGRA8);
|
||||
|
||||
m_lumBgra8 = 0;
|
||||
if ( (BGFX_CAPS_TEXTURE_BLIT|BGFX_CAPS_TEXTURE_READ_BACK) == (bgfx::getCaps()->supported & BGFX_CAPS_TEXTURE_BLIT|BGFX_CAPS_TEXTURE_READ_BACK) )
|
||||
if ( (BGFX_CAPS_TEXTURE_BLIT|BGFX_CAPS_TEXTURE_READ_BACK) == (bgfx::getCaps()->supported & (BGFX_CAPS_TEXTURE_BLIT|BGFX_CAPS_TEXTURE_READ_BACK) ) )
|
||||
{
|
||||
m_rb = bgfx::createTexture2D(1, 1, 1, bgfx::TextureFormat::BGRA8, BGFX_TEXTURE_READ_BACK);
|
||||
}
|
||||
|
|
|
@ -978,6 +978,7 @@ namespace bgfx
|
|||
CAPS_FLAGS(BGFX_CAPS_DRAW_INDIRECT),
|
||||
CAPS_FLAGS(BGFX_CAPS_HIDPI),
|
||||
CAPS_FLAGS(BGFX_CAPS_TEXTURE_BLIT),
|
||||
CAPS_FLAGS(BGFX_CAPS_TEXTURE_READ_BACK),
|
||||
#undef CAPS_FLAGS
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue