Fix pixel attributes (std::array -> geom::vector)
This commit is contained in:
parent
dba0c78daf
commit
e0c67d8043
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ namespace psemek::gfx
|
|||
};
|
||||
|
||||
template <>
|
||||
struct pixel_traits<std::array<std::uint8_t, 3>>
|
||||
struct pixel_traits<geom::vector<std::uint8_t, 3>>
|
||||
{
|
||||
static constexpr GLenum internal_format = gl::RGB8;
|
||||
static constexpr GLenum format = gl::RGB;
|
||||
|
|
@ -27,7 +27,7 @@ namespace psemek::gfx
|
|||
};
|
||||
|
||||
template <>
|
||||
struct pixel_traits<std::array<std::uint8_t, 4>>
|
||||
struct pixel_traits<geom::vector<std::uint8_t, 4>>
|
||||
{
|
||||
static constexpr GLenum internal_format = gl::RGBA8;
|
||||
static constexpr GLenum format = gl::RGBA;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue