Solution 6 (fix?)

Nichts ist wie es scheint
Beiträge: 23
Registriert: 28. Okt 2017 20:25

Solution 6 (fix?)

Beitrag von PicoJr »


Thank you for uploading exercise 6 solution.

I have the following error message when running the provided solution:

Code: Alles auswählen

Solution6/Deployment(master*) » ../build/Exercise6/Exercise6
GLSL linker error: error: uniform `time' declared as type `vec4' and type `float'

Uniform P not found.
Uniform V not found.
Uniform M not found.
Uniform time not found.
Uniform duration not found.
Uniform openAngle not found.
Uniform closeAngle not found.
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  153 (DRI2)
  Minor opcode of failed request:  7 (DRI2GetBuffersWithFormat	)
  Resource id in failed request:  0x3c00003
  Serial number of failed request:  402
  Current serial number in output stream:  402
This change seems to fix the issue:

Code: Alles auswählen

diff --git a/Sources/pacman.frag.glsl b/Sources/pacman.frag.glsl
index e2b51b8..eef6276 100644
--- a/Sources/pacman.frag.glsl
+++ b/Sources/pacman.frag.glsl
@@ -1,6 +1,6 @@
 #version 450
-uniform vec4 time;
+uniform float time;

 out vec4 frag;
I opened a pull request on github ;-)

Best regards,


Beiträge: 363
Registriert: 14. Okt 2014 17:05

Re: Solution 6 (fix?)

Beitrag von RobDangerous »

Thanks! Merged that and added another fix (same ones as have been added for Exercise6 before).


Zurück zu „Archiv“