Add end-of-line spaces checker

This commit is contained in:
SirLynix
2024-01-26 10:43:00 +01:00
parent 63c61c0827
commit 6757de1be8
90 changed files with 170 additions and 126 deletions

View File

@@ -84,11 +84,11 @@ namespace Nz
for (std::size_t i = 0; i < bindingCount; ++i)
{
const Binding& binding = bindings[i];
std::visit([&](auto&& arg)
{
using T = std::decay_t<decltype(arg)>;
if constexpr (std::is_same_v<T, SampledTextureBinding>)
HandleTextureBinding(binding.bindingIndex, arg);
else if constexpr (std::is_same_v<T, SampledTextureBindings>)

View File

@@ -333,7 +333,7 @@ namespace Nz::GL
{
// WGL_ARB_pixel_format and WGL_EXT_pixel_format are the same, except for the symbol
auto wglChoosePixelFormat = (currentContext->wglChoosePixelFormatARB) ? currentContext->wglChoosePixelFormatARB : currentContext->wglChoosePixelFormatEXT;
if (wglChoosePixelFormat)
{
std::array<int, 10 * 2 + 1> attributes = {