Page 1 of 1

[1.4.2] Bug? : Shaders not working

Posted: Tue Jan 26, 2010 22:02
by CMDBob
I've been playing GZDoom, and I noticed that whenever I tried to use the brightmaps, they just didn't work. I went to my laptop, tried them, all was good. So I looked through the console and I found this...

Code: Select all

Init Shader 'Default::default+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Default::glow+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Default::desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Default::glow+desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 1::default+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 1::glow+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 1::desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 1::glow+desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 2::default+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 2::glow+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 2::desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Warp 2::glow+desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Brightmap::default+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Brightmap::glow+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Brightmap::desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'Brightmap::glow+desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'No Texture::default+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'No Texture::glow+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'No Texture::desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
 

Init Shader 'No Texture::glow+desaturate+dynlight':
Vertex shader:
Vertex shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Vertex shader:
Fragment shader failed to compile with the following errors:
ERROR: 0:2: '' :  #version must occur before any other statement in the program
ERROR:  compilation errors.  No code generated.


Linking:
Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
My main gaming rig is a Windows 7 32 bit PC with an ATi Radeon 3850 HD (with the latest drivers, updated them today [today being 26/01]), and my laptop is a Windows Vista 32bit with an integrated nVidia card (can't remember the make, but its probably not important as it works).

Don't know why it isn't working right, as this PC plays pretty much everything new smoothly.

[Ninjaedit] Wow, I am kinda silly, I got the version wrong. I must be blind. [/ninjaedit]

Re: [2.1.4] Bug? : Shaders not working

Posted: Tue Jan 26, 2010 22:11
by Graf Zahl
This should have been fixed long ago. Can anyone else confirm?

Re: [2.1.4] Bug? : Shaders not working

Posted: Tue Jan 26, 2010 22:25
by Gez
Version 2.1.4?

Re: [1.4.2] Bug? : Shaders not working

Posted: Thu Jan 28, 2010 17:47
by Firebrand
I tried it with the latest SVN version and got the same errors as the OP. I have that very same ATI card too.

Re: [1.4.2] Bug? : Shaders not working

Posted: Fri Jan 29, 2010 19:52
by CMDBob
The funny thing is, I run Skulltag on this PC, and the shaders miraculously work, which is odd. Still, good to know I'm not the only one with a problem.

Re: [1.4.2] Bug? : Shaders not working

Posted: Fri Jan 29, 2010 20:15
by Graf Zahl
fixed.