From 75d1526bdd078c768e00202085addfa4ef3917a8 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 2 Apr 2021 11:05:08 +0300 Subject: [PATCH] Fix uint16_t pixel traits --- libs/gfx/include/psemek/gfx/pixel.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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