submit_rewrite
thatcosmonaut 2021-01-04 23:31:56 -08:00 committed by GitHub
parent 5a92fdf984
commit 2dbfab6b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 3 deletions

14
.drone.yml Normal file
View File

@ -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

2
.gitmodules vendored
View File

@ -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

View File

@ -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

View File

@ -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);
}