diff --git a/libs/gfx/include/psemek/gfx/pixel.hpp b/libs/gfx/include/psemek/gfx/pixel.hpp index c174a4c1..fd89d596 100644 --- a/libs/gfx/include/psemek/gfx/pixel.hpp +++ b/libs/gfx/include/psemek/gfx/pixel.hpp @@ -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