Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Failed to compile geometry shader? (SFML 2.4)  (Read 1387 times)

0 Members and 1 Guest are viewing this topic.

Elias Daler

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
    • Blog
    • Email
[SOLVED] Failed to compile geometry shader? (SFML 2.4)
« on: September 26, 2016, 09:50:49 am »
SOLVED: turns out that I didn't recompile the file which loaded shader, so sf::Shader::Fragment was still equal to 1 in this source file... I'm not smart at times.  ;D

I've just update to SFML 2.4 from SFML 2.3.2 and now none of my shaders work.
I used pixelate.frag shader from examples and I load it like this:
shader.loadFromFile("res/shaders/pixelate.frag", sf::Shader::Fragment);
For some reason, however, SFML displays the following errors:
Failed to compile geometry shader:
Geometry shader failed to compile with the following errors:
ERROR: 0:8: error(#143) Undeclared identified gl_FragColor
ERROR: 0:8: error(#143) Undeclared identified gl_FragColor
WARNING: 0:8: warning(#402) Implicit truncation of vector from size 4 to size 1.

ERROR: error(#273) 2 compilation errors. No code generated
How can I fix it?
« Last Edit: September 26, 2016, 10:08:24 am by Elias Daler »
Tomb Painter, Re:creation dev | eliasdaler.github.io | @EliasDaler | Tomb Painter dev log

 

anything