gavioto / playn

Automatically exported from code.google.com/p/playn
0 stars 0 forks source link

Image.setRepeat() fails on GL platforms (new in 1.8) #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create a new game with the following in init():
        CanvasImage image = graphics().createImage(100, 100);
        image.canvas().setFillColor(Colors.BLUE);
        image.canvas().fillCircle(50, 50, 50);
        ImageLayer layer = graphics().createImageLayer(image);
        graphics().rootLayer().add(layer);      

        CanvasImage image2 = graphics().createImage(20, 10);
        image2.canvas().setFillColor(Colors.BLUE);
        image2.canvas().fillCircle(5, 5, 5);
        image2.setRepeat(true, true);
        ImageLayer layer2 = graphics().createImageLayer(image2);
        layer2.setTranslation(0, 120);
        layer2.setWidth(100);
        graphics().rootLayer().add(layer2);

What is the expected output? What do you see instead?
There should be a large circle with a strip of small, repeating circles. This 
is what happens in 1.7.2, as seen in the attached image. Instead, only the 
circle appears, as seen in the alternate image.

What version of the product are you using? On what operating system?
1.8 (the problem does not occur on earlier version)

Please provide any additional information below.
If the first ImageLayer is not added, the second one does show up. This 
behavior only occurs on GL systems. HTML5 canvas doesn't have the problem.

Thanks!

Original issue reported on code.google.com by thomaswp...@gmail.com on 11 Feb 2014 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
This is already fixed in trunk. It'll be out in the next release. Sorry for the 
regression!

Original comment by m...@samskivert.com on 11 Feb 2014 at 6:00