Skip to content

Commit

Permalink
layers: Cleanup unused includes and bool expr
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jul 12, 2023
1 parent c2ac4d6 commit 4f4dc90
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions layersvt/screenshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ static bool writePPM(const char *filename, VkImage image1) {
if (destformat == format) {
copyOnly = true;
} else {
bool const bltLinear = targetFormatProps.linearTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT ? true : false;
bool const bltOptimal = targetFormatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT ? true : false;
bool const bltLinear = targetFormatProps.linearTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT;
bool const bltOptimal = targetFormatProps.optimalTilingFeatures & VK_FORMAT_FEATURE_BLIT_DST_BIT;
if (!bltLinear && !bltOptimal) {
// Cannot blit to either target tiling type. It should be pretty
// unlikely to have a device that cannot blit to either type.
Expand Down
2 changes: 0 additions & 2 deletions vkconfig/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "main_doc.h"
#include "main_signal.h"

#include "../vkconfig_core/command_line.h"

#include <cassert>

int main(int argc, char* argv[]) {
Expand Down
2 changes: 1 addition & 1 deletion vkconfig/main_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int run_gui(int argc, char* argv[], const CommandLine& command_line) {
// We simply cannot run without any layers
Configurator& configurator = Configurator::Get(command_line.command_vulkan_sdk);

if (configurator.Init() == false) return -1;
if (!configurator.Init()) return -1;

// The main GUI is driven here
MainWindow main_window;
Expand Down
2 changes: 0 additions & 2 deletions vku/vk_layer_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <regex>
#include <sys/stat.h>

#include <vulkan/vk_layer.h>

#if defined(_WIN32)
#include <windows.h>
#include <direct.h>
Expand Down

0 comments on commit 4f4dc90

Please sign in to comment.