Fix assert on format mapping #9

This commit is contained in:
Ondřej Novák 2025-05-09 08:13:51 +02:00
parent 4ab5f37d82
commit 96eaeb4851

View file

@ -1,10 +1,11 @@
#pragma once #pragma once
#include <SDL_surface.h> #include <SDL_surface.h>
template<Uint32 format> constexpr bool assert_false = false;
template<Uint32 format> template<Uint32 format>
struct FormatMapping { struct FormatMapping {
static_assert(false, "Unsupported pixel format"); static_assert(assert_false<format>, "Unsupported pixel format");
}; };
template<> template<>