Draw textured rounded box...

I need to draw a textured rounded box in my vgui control.
I’ve tried setting the surface texture before calling the draw rounded box function, but it doesn’t work.
Is there any way to do this, or do I have to write my own drawing function for it?
The texture I’m trying to use is “gui/gradient_up”, if it matters.

You’d need to use either a polygon OR just customsize the texture.

Hm. I’ll go with customizing the texture!
Thank you for the idea!

Edit: Hm, after some thinking I realized it’s not a good idea.
I’ll make a polygon…