This commit is contained in:
Бранимир Караџић 2021-04-18 21:16:56 -07:00
parent daad11fa0c
commit 19fe73d00d

View File

@ -969,13 +969,15 @@ public:
bgfx::TextureFormat::Enum format = bgfx::TextureFormat::RG11B10F; bgfx::TextureFormat::Enum format = bgfx::TextureFormat::RG11B10F;
if (!bgfx::isTextureValid(1, false, 1, format, bilinearFlags)) if (!bgfx::isTextureValid(1, false, 1, format, bilinearFlags))
{
format = bgfx::TextureFormat::RGBA16F; format = bgfx::TextureFormat::RGBA16F;
}
m_currentColor.init(m_size[0], m_size[1], format, bilinearFlags); m_currentColor .init(m_size[0], m_size[1], format, bilinearFlags);
m_previousColor.init(m_size[0], m_size[1], format, bilinearFlags); m_previousColor .init(m_size[0], m_size[1], format, bilinearFlags);
m_txaaColor.init(m_size[0], m_size[1], format, bilinearFlags); m_txaaColor .init(m_size[0], m_size[1], format, bilinearFlags);
m_temporaryColor.init(m_size[0], m_size[1], format, bilinearFlags); m_temporaryColor .init(m_size[0], m_size[1], format, bilinearFlags);
m_previousNormal.init(m_size[0], m_size[1], format, pointSampleFlags); m_previousNormal .init(m_size[0], m_size[1], format, pointSampleFlags);
m_previousDenoise.init(m_size[0], m_size[1], format, bilinearFlags); m_previousDenoise.init(m_size[0], m_size[1], format, bilinearFlags);
} }