Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
355 stars 55 forks source link

Shader compilation errors #407

Closed AMDmi3 closed 2 years ago

AMDmi3 commented 2 years ago

Describe the bug Not sure whether a real bug, bug I've got shared compilation errors on console. The game plays fine though.

Screenshots and Logs

Supported sound decoders: WAVE AIFF VOC MOD MID OGG OPUS MP3 FLAC
Supported music decoders: CMD WAVE FLAC OGG OPUS MPG123 MODPLUG TIMIDITY MOD MIDI MP3
[Renderer] opengl
[Shaders] Compiling shader: none
Shader compiled correctly. Id = 43
Shader compiled correctly. Id = 44
[Shaders] Compiling shader: xBRZ
Shader compiled correctly. Id = 46
Shader compiled correctly. Id = 47
[Shaders] Compiling shader: CRT
Shader compiled correctly. Id = 49
Shader compiled correctly. Id = 50
[Shaders] Compiling shader: VHS
Shader compiled correctly. Id = 52
Shader compiled correctly. Id = 53
[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/aa-jinc2-sharp.cg.glsl
Error during compilation: 55!
Shader compile log: 0:39(16): error: `gl_Vertex' redeclared
0:41(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/bloom.cg.glsl
Error during compilation: 56!
Shader compile log: 0:26(16): error: `gl_Vertex' redeclared
0:28(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/crt-easymode.cg.glsl
Error during compilation: 57!
Shader compile log: 0:31(16): error: `gl_Vertex' redeclared
0:32(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/crt-reverse-aa.cg.glsl
Error during compilation: 58!
Shader compile log: 0:55(16): error: `gl_Vertex' redeclared
0:57(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/dotmask.cg.glsl
Error during compilation: 59!
Shader compile log: 0:32(16): error: `gl_Vertex' redeclared
0:35(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/tv-highcontrast-hd.cg.glsl
Error during compilation: 60!
Shader compile log: 0:35(16): error: `gl_Vertex' redeclared
0:37(16): error: `gl_MultiTexCoord0' redeclared

[Shaders] Compiling shader: /home/marakasov/.stratagus/data.Wargus/shaders/xbr-lv2.cg.glsl
Error during compilation: 61!
Shader compile log: 0:50(16): error: `gl_Vertex' redeclared
0:52(16): error: `gl_MultiTexCoord0' redeclared

Stratagus v3.1.2, Copyright (c) 1998-2020 by The Stratagus Project
  written by Lutz Sammer, Fabrice Rossi, Vladi Shabanski, Patrice Fortier,
  Jon Gabrielson, Andreas Arens, Nehal Mistry, Jimmy Salmon, Pali Rohar,
  cybermind and others.
    https://github.com/Wargus/stratagus
Compile options ZLIB BZ2LIB VORBIS THEORA BSD 

Stratagus may be copied only under the terms of the GNU General Public License
which may be found in the Stratagus source kit.

DISCLAIMER:
This software is provided as-is.  The author(s) can not be held liable for any
damage that might arise from the use of this software.
Use it at your own risk.

SetShader: none
game ends
Thanks for playing Stratagus.

Desktop (please complete the following information):

Shader source for /home/marakasov/.stratagus/data.Wargus/shaders/aa-jinc2-sharp.cg.glsl: https://gist.github.com/1be4720b11ea5809a558da689f8b3eaf

timfel commented 2 years ago

That's not a problem, it just means that this particular shader won't work. Thanks for reporting though, I should really remove some of those unmaintained shader files or update them :)