Ok, I have a function generateTexture that returns an image handle. This code works :
However, this doesn't :
The saveimage line throws a "Image does not exist" error. The only difference between the two pieces of code is that the second one has a print statement before I save the image. Isn't that odd? I really don't understand this. Any ideas?
newimg%=generateTexture(1,1,1,"000255255","255000255","000255255","255000255","000255255","255000255") setbuffer frontbuffer() saveimage(newimg,"c:\temp\texture_test.bmp")
However, this doesn't :
newimg%=generateTexture(1,1,1,"000255255","255000255","000255255","255000255","000255255","255000255") setbuffer frontbuffer() print "something" saveimage(newimg,"c:\temp\texture_test.bmp")
The saveimage line throws a "Image does not exist" error. The only difference between the two pieces of code is that the second one has a print statement before I save the image. Isn't that odd? I really don't understand this. Any ideas?