Skip to content

Commit

Permalink
Merge branch 'master' into RedirectCoutCerrToLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Apr 16, 2024
2 parents a9ee589 + 909ebcc commit cdcc8e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ CMakeScripts
Makefile
cmake_install.cmake
install_manifest.txt
*.ninja
.ninja_log
.ninja_deps
.cmake/
compile_commands.json


# Compiled Object files
Expand Down
5 changes: 4 additions & 1 deletion include/vsg/state/GraphicsPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ namespace vsg
void compile(Context& context);

// remove the local reference to the Vulkan implementation
void release(uint32_t viewID) { _implementation[viewID] = {}; }
void release(uint32_t viewID)
{
if (viewID < static_cast<uint32_t>(_implementation.size())) _implementation[viewID] = {};
}
void release() { _implementation.clear(); }

protected:
Expand Down

0 comments on commit cdcc8e1

Please sign in to comment.