PDA

View Full Version : Severe problems with glsl...



Dr_Davenstein
05-23-2006, 02:08 PM
I'm not using C or C++, so I can't really post any code. I was just wondering if these errors could be caused because the shader text is getting corrupted/read incorrectly? To make sure it's not an error on my part, I'm trying to compile a vertex shader from a 3D Labs tutorial. The first is a syntax error, which makes it obvious that something is going wrong when I send the text to the card. Also, what is an invalid atom? Thanks.


(0) : error C0000: syntax error, unexpected $end at token "<invalid atom>"
(1) : error C0501: type name expected at token "<invalid atom>"

Humus
05-23-2006, 03:25 PM
Make sure you still got all the newlines in there.

Dr_Davenstein
05-23-2006, 04:02 PM
That's what it was. We were loading every line directly after the last, with no new lines. Thanks. :)