Gamma calibration problem

Dear All,


I am experiencing a problem with gamma calibration. Whenever I open a new window and apply 

Screen('LoadNormalizedGammaTable', c.display.windowPtr, newLUT)


The screen adjusts the values accordingly to the LUT, however after 2 seconds without any flip or keyboard input it goes back to original values.


When I apply the NormalizedGammTtable again it switches to correct values but again after 2 seconds goes back to original.


I have seen a similar problem on the forum but without any solution.


I am running PTB 3.0.13 on OSX sierra on Macbook pro 2015 with AMD R9370x


Best regards,

Jan