The example/draw.go has two problems. The first, as outlined in another pull request, is the use of incorrect constants. The second problem is that it attempts to finish a surface before writing it out to a PNG. This is an invalid sequence of operations.
The example/draw.go has two problems. The first, as outlined in another pull request, is the use of incorrect constants. The second problem is that it attempts to finish a surface before writing it out to a PNG. This is an invalid sequence of operations.
This patch fixes both of those issues.