Skip to content

Commit

Permalink
[Vk] fixed SIGSEGV in VulkanDescriptorSetTexture::setHazardousTex() d…
Browse files Browse the repository at this point in the history
…ue to the iterators invalidation
  • Loading branch information
eugenegff committed Sep 16, 2024
1 parent 4a30feb commit 56d36e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RenderSystems/Vulkan/src/OgreVulkanDescriptorSets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ namespace Ogre
if( mLastHazardousTex != hazardousTexIdx )
{
const size_t realNumTextures = descSet.mTextures.size();
mTextures.reserve( 2 * realNumTextures );
mTextures.resize( realNumTextures );
mTextures.appendPOD( mTextures.begin(), mTextures.end() );
mWriteDescSetHazardous.pImageInfo = mTextures.begin() + realNumTextures;
Expand Down

0 comments on commit 56d36e7

Please sign in to comment.