Delete all tempory textures in on OpenGL call.

Of course there should be no such thing like a temporary texture in the
first place. I'm working towards that (not easy for list box widgets).
The hook might still be useful in the context of moving to OpenGL >= 3.x
with buffers.