diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f080f5a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: fedora + commands: + - dnf install -y git cmake clang SDL2-devel + - git submodule update --recursive --init + - cmake -E make_directory ./build + - cd ./build + - cmake -S .. -B . + - make diff --git a/.gitmodules b/.gitmodules index bf57598..bf4fac3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "Vulkan-Headers"] path = Vulkan-Headers - url = git@github.com:KhronosGroup/Vulkan-Headers.git + url = https://github.com/KhronosGroup/Vulkan-Headers.git diff --git a/README b/README.md similarity index 87% rename from README rename to README.md index d940a85..62be45f 100644 --- a/README +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://github.drone.moonside.games/api/badges/thatcosmonaut/Refresh/status.svg)](https://github.drone.moonside.games/thatcosmonaut/Refresh) + This is Refresh, an XNA-inspired 3D graphics library with modern capabilities. License diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 9dc0f3c..2d188d0 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -7264,7 +7264,7 @@ static void VULKAN_AddDisposeFramebuffer( VulkanFramebuffer*, renderer->framebuffersToDestroyCount + 1, renderer->framebuffersToDestroyCapacity, - renderer->framebuffersToDestroyCapacity *= 2 + renderer->framebuffersToDestroyCapacity * 2 ) renderer->framebuffersToDestroy[renderer->framebuffersToDestroyCount] = vulkanFramebuffer; @@ -7812,6 +7812,13 @@ static VulkanCommandPool* VULKAN_INTERNAL_FetchCommandPool( &vulkanCommandPool->commandPool ); + if (vulkanResult != VK_SUCCESS) + { + REFRESH_LogError("Failed to create command pool!"); + LogVulkanResult("vkCreateCommandPool", vulkanResult); + return NULL; + } + vulkanCommandPool->threadID = threadID; vulkanCommandPool->inactiveCommandBufferCapacity = 0; @@ -8345,7 +8352,7 @@ static void VULKAN_Submit( &presentInfo ); - if (renderer->needNewSwapChain) + if (presentResult != VK_SUCCESS || renderer->needNewSwapChain) { VULKAN_INTERNAL_RecreateSwapchain(renderer); }