fdf608af4c
test-cogl-tex-polygon creates a separate material so that it can set the texture filters. However in the paint functions that use cogl_polygon it was calling cogl_set_source_texture which replaces the material and ends up always using GL_LINEAR. This patch makes the paint functions assume the correct source is set up instead of trying to select a new source.