> I think this is because calls to gl are happening before the context is > set up, which is bad. does it work when you take the (clear) out? that was my guess also. yes, it works when the (clear) is taken out. gabor