Fix uint16_t pixel traits
This commit is contained in:
parent
bb1df4599d
commit
75d1526bdd
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue