Browse Source

Fixed RG11B10F encoding.

Бранимир Караџић 3 years ago
parent
commit
b343376591
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/bx/inline/pixelformat.inl

+ 2 - 2
include/bx/inline/pixelformat.inl

@@ -966,8 +966,8 @@ namespace bx
 	{
 	{
 		*( (uint32_t*)_dst) = 0
 		*( (uint32_t*)_dst) = 0
 			| ( (halfFromFloat(_src[0])>> 4) &      0x7ff)
 			| ( (halfFromFloat(_src[0])>> 4) &      0x7ff)
-			| ( (halfFromFloat(_src[0])<< 7) &   0x3ff800)
-			| ( (halfFromFloat(_src[0])<<17) & 0xffc00000)
+			| ( (halfFromFloat(_src[1])<< 7) &   0x3ff800)
+			| ( (halfFromFloat(_src[2])<<17) & 0xffc00000)
 			;
 			;
 	}
 	}