opengl colorspace + BT2020
[goodguy/history.git] / cinelerra-5.1 / plugins / chromakeyhsv / chromakey.sl
index 25ca2d041b1a80266c8715257e8298a010828c98..51cd1f3453f3fc434a4580a1b68dbbea62c25d55 100644 (file)
@@ -41,10 +41,10 @@ void main()
 
 /* Hue wrap */
        if(color2.r <= hue_key - tolerance_in * 180.0)
-               color2.r += 360;
+               color2.r += 360.0;
        else
        if(color2.r >= hue_key + tolerance_in * 180.0)
-               color2.r -= 360;
+               color2.r -= 360.0;
 
 /* Hue is completely out of range */
        if (tolerance == 0.0)