mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 18:25:29 +00:00
VK: Mark BGRA8/RGBA8 as valid backbuffer texture formats when in headless mode. (#3824)
This commit is contained in:
@@ -2198,6 +2198,19 @@ VK_IMPORT_DEVICE
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
static const TextureFormat::Enum headlessBackbufferFormats[] =
|
||||
{
|
||||
TextureFormat::BGRA8,
|
||||
TextureFormat::RGBA8,
|
||||
};
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(headlessBackbufferFormats); ++ii)
|
||||
{
|
||||
g_caps.formats[headlessBackbufferFormats[ii] ] |= BGFX_CAPS_FORMAT_TEXTURE_BACKBUFFER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
errorState = ErrorState::SwapChainCreated;
|
||||
|
||||
Reference in New Issue
Block a user