I've been trying to get this to work for so long now and it just isn't happening. Basically I'm create a texture on the fly and attempting to use it when drawing a rectangle with some vertex colours. Its in windowed mode and well.. doesn't work

www.btinternet.com/~bkreidy/src1.zip

I've tried literally everything I can think of thats why the code is so horrendously AWFUL! Hope you're about to trudge through it

Thanks in advance