rendervulkan: don't use global g_output.pScreenshotImage in BInit
This commit is contained in:
parent
82c89fdff9
commit
7ff26668ab
1 changed files with 2 additions and 2 deletions
|
@ -666,7 +666,7 @@ bool CVulkanTexture::BInit( uint32_t width, uint32_t height, VkFormat format, cr
|
|||
|
||||
if ( flags.bMappable )
|
||||
{
|
||||
vkMapMemory( device, g_output.pScreenshotImage->m_vkImageMemory, 0, VK_WHOLE_SIZE, 0, &m_pMappedData );
|
||||
vkMapMemory( device, m_vkImageMemory, 0, VK_WHOLE_SIZE, 0, &m_pMappedData );
|
||||
|
||||
if ( m_pMappedData == nullptr )
|
||||
{
|
||||
|
@ -684,7 +684,7 @@ CVulkanTexture::~CVulkanTexture( void )
|
|||
{
|
||||
if ( m_pMappedData != nullptr )
|
||||
{
|
||||
vkUnmapMemory( device, g_output.pScreenshotImage->m_vkImageMemory );
|
||||
vkUnmapMemory( device, m_vkImageMemory );
|
||||
m_pMappedData = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue