mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-04 13:46:58 -04:00
Fix assert on format mapping #9
This commit is contained in:
parent
4ab5f37d82
commit
96eaeb4851
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
#pragma once
|
||||
#include <SDL_surface.h>
|
||||
|
||||
template<Uint32 format> constexpr bool assert_false = false;
|
||||
|
||||
template<Uint32 format>
|
||||
struct FormatMapping {
|
||||
static_assert(false, "Unsupported pixel format");
|
||||
static_assert(assert_false<format>, "Unsupported pixel format");
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue