mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 09:01:24 +00:00
- output the error code when submitting a command buffer fails.
This commit is contained in:
parent
f8aa48d053
commit
dc9a995695
1 changed files with 6 additions and 6 deletions
|
@ -180,8 +180,8 @@ void VulkanFrameBuffer::Update()
|
|||
submitInfo.signalSemaphoreCount = 1;
|
||||
submitInfo.pSignalSemaphores = &mUploadSemaphore->semaphore;
|
||||
VkResult result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, VK_NULL_HANDLE);
|
||||
if (result != VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer!\n");
|
||||
if (result < VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer! Error %d\n", result);
|
||||
|
||||
// Wait for upload commands to finish, then submit render commands
|
||||
VkSemaphore waitSemaphores[] = { mUploadSemaphore->semaphore, device->imageAvailableSemaphore->semaphore };
|
||||
|
@ -194,8 +194,8 @@ void VulkanFrameBuffer::Update()
|
|||
submitInfo.signalSemaphoreCount = 1;
|
||||
submitInfo.pSignalSemaphores = &device->renderFinishedSemaphore->semaphore;
|
||||
result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, device->renderFinishedFence->fence);
|
||||
if (result != VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer!\n");
|
||||
if (result < VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer! Error %d\n", result);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -212,8 +212,8 @@ void VulkanFrameBuffer::Update()
|
|||
submitInfo.signalSemaphoreCount = 1;
|
||||
submitInfo.pSignalSemaphores = &device->renderFinishedSemaphore->semaphore;
|
||||
VkResult result = vkQueueSubmit(device->graphicsQueue, 1, &submitInfo, device->renderFinishedFence->fence);
|
||||
if (result != VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer!\n");
|
||||
if (result < VK_SUCCESS)
|
||||
I_FatalError("Failed to submit command buffer! Error %d\n", result);
|
||||
}
|
||||
|
||||
Flush3D.Unclock();
|
||||
|
|
Loading…
Reference in a new issue