Fix pixel attributes (std::array -> geom::vector)

This commit is contained in:
Nikita Lisitsa 2020-08-30 21:20:24 +03:00
parent dba0c78daf
commit e0c67d8043

View file

@ -19,7 +19,7 @@ namespace psemek::gfx
}; };
template <> 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 internal_format = gl::RGB8;
static constexpr GLenum format = gl::RGB; static constexpr GLenum format = gl::RGB;
@ -27,7 +27,7 @@ namespace psemek::gfx
}; };
template <> 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 internal_format = gl::RGBA8;
static constexpr GLenum format = gl::RGBA; static constexpr GLenum format = gl::RGBA;