Team Spartan Cookies & Milk Forums
drawPoly [BUG] - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: drawPoly [BUG] (/thread-724.html)



drawPoly [BUG] - LocInt - 11-02-2015

Hey,

For some reason after I use texturedRect as a background polygons can't be colored.

render.setTexture(tex)
drawTexturedRect(256,256,512,512)

Polygons draw just fine but colors is always black. If I remove those lines it works just fine.


RE: drawPoly [BUG] - Person8880 - 11-02-2015

Polygons use the current texture. Use render.setTexture() with no arguments to reset it.


RE: drawPoly [BUG] - LocInt - 11-02-2015

(11-02-2015, 07:05 PM)Person8880 Wrote: Polygons use the current texture. Use render.setTexture() with no arguments to reset it.

Thanks!