Browse Source

removed gamma correction formula...not needed

Jason Hancock 18 năm trước cách đây
mục cha
commit
f96161f01e
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      panda/src/osxdisplay/osxGraphicsStateGuardian.cxx

+ 0 - 2
panda/src/osxdisplay/osxGraphicsStateGuardian.cxx

@@ -413,8 +413,6 @@ static_set_gamma(float gamma) {
 			y[j] = 255;
 		};
 
-    gamma = (2 * gamma) + 1.0;
-	
 	y[0] = 256 * gamma;
 	y[1] = 256 * gamma;
 	y[2] = 256 * gamma;