Skip to content

Commit

Permalink
Merge pull request #47561 from szymonm-google/remove_debug_code
Browse files Browse the repository at this point in the history
Removed debug code
  • Loading branch information
akien-mga authored Apr 2, 2021
2 parents 4b6e9f3 + 1328208 commit 8610867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vulkan/vulkan_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ Error VulkanContext::_initialize_queues(VkSurfaceKHR surface) {
// If the format list includes just one entry of VK_FORMAT_UNDEFINED,
// the surface has no preferred format. Otherwise, at least one
// supported format will be returned.
if (true || (formatCount == 1 && surfFormats[0].format == VK_FORMAT_UNDEFINED)) {
if (formatCount == 1 && surfFormats[0].format == VK_FORMAT_UNDEFINED) {
format = VK_FORMAT_B8G8R8A8_UNORM;
} else {
if (formatCount < 1) {
Expand Down

0 comments on commit 8610867

Please sign in to comment.