From 5bc83a25063330ab9177a291ab984c5c7052aa02 Mon Sep 17 00:00:00 2001 From: Branimir Karadžić Date: Sun, 7 Feb 2016 09:50:16 +0100 Subject: Update BGFX (nw) --- 3rdparty/bgfx/examples/09-hdr/hdr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '3rdparty/bgfx/examples/09-hdr/hdr.cpp') diff --git a/3rdparty/bgfx/examples/09-hdr/hdr.cpp b/3rdparty/bgfx/examples/09-hdr/hdr.cpp index 14f6edca81b..047fb0aa565 100644 --- a/3rdparty/bgfx/examples/09-hdr/hdr.cpp +++ b/3rdparty/bgfx/examples/09-hdr/hdr.cpp @@ -205,7 +205,7 @@ class HDR : public entry::AppI m_mesh = meshLoad("meshes/bunny.bin"); m_fbtextures[0] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::BGRA8, BGFX_TEXTURE_RT|BGFX_TEXTURE_U_CLAMP|BGFX_TEXTURE_V_CLAMP); - m_fbtextures[1] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::D16, BGFX_TEXTURE_RT_BUFFER_ONLY); + m_fbtextures[1] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::D16, BGFX_TEXTURE_RT_WRITE_ONLY); m_fbh = bgfx::createFrameBuffer(BX_COUNTOF(m_fbtextures), m_fbtextures, true); m_lum[0] = bgfx::createFrameBuffer(128, 128, bgfx::TextureFormat::BGRA8); @@ -308,7 +308,7 @@ class HDR : public entry::AppI bgfx::destroyFrameBuffer(m_fbh); m_fbtextures[0] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::BGRA8, ( (msaa+1)<