From 679764f3ef7054d344c7e243bfbf91521e2ec925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 20 Oct 2015 18:35:02 -0700 Subject: [PATCH] Cleanup. --- examples/09-hdr/hdr.cpp | 2 +- src/bgfx.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 0d70774f..ccb2644e 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -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); } diff --git a/src/bgfx.cpp b/src/bgfx.cpp index bdcc54aa..f3989bae 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -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 };