Fastest Way to update a brush pixmap

BlitzMax Forums/MiniB3D Module/Fastest Way to update a brush pixmap

ima747(Posted 2008) [#1]
I have an object with a textured brush painted on. I can easily reference and change the pixmap of the brush through brush.tex[0].pixmap however since (I think) gl stores the texture when it's loaded in vram changing the picture doesn't change the texture. So to change the texture I have to re-load a modified version of the image, which digging through the code, copies it, resizes it, and does various other things that take a while. Is there a faster way to modify an object's texture on the fly? A way to tell it to reload the texture to get any changes etc...