diff --git a/.github/workflows/macos_x86.yml b/.github/workflows/macos_x86.yml index 42e8af3..18919d5 100644 --- a/.github/workflows/macos_x86.yml +++ b/.github/workflows/macos_x86.yml @@ -29,12 +29,6 @@ jobs: uses: actions/checkout@v4 # Install system dependencies - - name: Install Vulkan SDK - uses: humbletim/install-vulkan-sdk@v1.1.1 - with: - version: 1.3.204.1 - cache: true - - name: Install Dependancies run: | brew install SDL2 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 83c5cc3..ad4d479 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,13 +28,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # Install system dependencies - - name: Install Vulkan SDK - uses: humbletim/install-vulkan-sdk@v1.1.1 - with: - version: 1.3.204.1 - cache: true - # Force xmake to a specific folder (for cache) - name: Set xmake env run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV diff --git a/src/core/application.cpp b/src/core/application.cpp index 237ab2c..c0160c0 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/04 22:10:52 by maldavid #+# #+# */ -/* Updated: 2024/03/24 14:39:23 by maldavid ### ########.fr */ +/* Updated: 2024/04/21 18:13:29 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -50,13 +50,18 @@ namespace mlx::core _loop_hook(_param); for(auto& gs : _graphics) - gs->render(); + { + if(gs) + gs->render(); + } } Render_Core::get().getSingleTimeCmdManager().updateSingleTimesCmdBuffersSubmitState(); for(auto& gs : _graphics) { + if(!gs) + continue; for(int i = 0; i < MAX_FRAMES_IN_FLIGHT; i++) gs->getRenderer().getCmdBuffer(i).waitForExecution(); }