From d193abb0ad0827d5ecc0915d65b67faf68a87097 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 3 Sep 2016 13:30:42 +0200 Subject: Update BGFX and BX packages and update MAME code to support new API (nw) Generated missing shaders (nw) --- 3rdparty/bgfx/examples/19-oit/oit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/bgfx/examples/19-oit/oit.cpp') diff --git a/3rdparty/bgfx/examples/19-oit/oit.cpp b/3rdparty/bgfx/examples/19-oit/oit.cpp index 78c600331dd..966f436eb18 100644 --- a/3rdparty/bgfx/examples/19-oit/oit.cpp +++ b/3rdparty/bgfx/examples/19-oit/oit.cpp @@ -264,8 +264,8 @@ class ExampleOIT : public entry::AppI bgfx::destroyFrameBuffer(m_fbh); } - m_fbtextures[0] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::RGBA16F, BGFX_TEXTURE_RT); - m_fbtextures[1] = bgfx::createTexture2D(m_width, m_height, 1, bgfx::TextureFormat::R16F, BGFX_TEXTURE_RT); + m_fbtextures[0] = bgfx::createTexture2D(m_width, m_height, false, 1, bgfx::TextureFormat::RGBA16F, BGFX_TEXTURE_RT); + m_fbtextures[1] = bgfx::createTexture2D(m_width, m_height, false, 1, bgfx::TextureFormat::R16F, BGFX_TEXTURE_RT); m_fbh = bgfx::createFrameBuffer(BX_COUNTOF(m_fbtextures), m_fbtextures, true); } @@ -417,7 +417,7 @@ class ExampleOIT : public entry::AppI | BGFX_STATE_DEPTH_TEST_ALWAYS | BGFX_STATE_MSAA ; - + bgfx::ProgramHandle program = BGFX_INVALID_HANDLE; switch (m_mode) { -- cgit v1.2.3-70-g09d2