Path: chuka.playstation.co.uk!news From: James Rutherford Newsgroups: scee.yaroze.freetalk.english Subject: Thanks, but still not sure... Date: Mon, 04 May 1998 17:36:02 +0100 Organization: The Hex Heroes Lines: 24 Message-ID: <354DEE72.7982@writeme.com> References: <3549FEDD.6D64@writeme.com> NNTP-Posting-Host: atl4-030.publab.ed.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.03 (Win95; I) Thanks for your help guys - the very prompt response was appreciated (and the information sorta made sense too!) I tried a couple of workarounds according to how I understood the problem and I'm still a little confused... If the problem is to do with the array being destroyed after the local call has finished (as seems a very plausible explanation) then defining GLbground[x] as a global/static variable should and does work. However, so should all of: 1) Defining GLbground[x] in main and then calling DrawGradient(&GLbground[0]) as a pointer to that array. 2) Inserting the DrawGradient code straight into main(). 3) Stalling for a number of VSyncs within DrawGradient() after the DrawOt(...) command has been called. I have the same problem when using all three of these work-arounds. Any enlightenment would be again, well appreciated - Cheers, James (~mrfrosty).