Hi!
Here the solution:
Try to add the argument multiSample and numSamples when you create your window, as in the example below:
w = visual.Window([wstim, hstim], color = [0, 0, 0], units = “pix”, fullscr=False, multiSample=True, numSamples = 16).
In my script this worked fine.