Fix uint16_t pixel traits

This commit is contained in:
Nikita Lisitsa 2021-04-02 11:05:08 +03:00
parent bb1df4599d
commit 75d1526bdd

View file

@ -105,7 +105,7 @@ namespace psemek::gfx
{
static constexpr GLenum internal_format = gl::R16;
static constexpr GLenum format = gl::RED;
static constexpr GLenum type = gl::UNSIGNED_BYTE;
static constexpr GLenum type = gl::UNSIGNED_SHORT;
};
template <>
@ -113,7 +113,7 @@ namespace psemek::gfx
{
static constexpr GLenum internal_format = gl::RG16;
static constexpr GLenum format = gl::RG;
static constexpr GLenum type = gl::UNSIGNED_BYTE;
static constexpr GLenum type = gl::UNSIGNED_SHORT;
};
template <>
@ -121,7 +121,7 @@ namespace psemek::gfx
{
static constexpr GLenum internal_format = gl::RGB16;
static constexpr GLenum format = gl::RGB;
static constexpr GLenum type = gl::UNSIGNED_BYTE;
static constexpr GLenum type = gl::UNSIGNED_SHORT;
};
template <>
@ -129,7 +129,7 @@ namespace psemek::gfx
{
static constexpr GLenum internal_format = gl::RGBA16;
static constexpr GLenum format = gl::RGBA;
static constexpr GLenum type = gl::UNSIGNED_BYTE;
static constexpr GLenum type = gl::UNSIGNED_SHORT;
};
// Normalized 10-10-10-2