[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] (pyopengl) GLSL fragment shader with arrays uniform cause sporadic screen blinking



Hi all.

Strange sporadic screen blinking when using array uniform variables in
fragment shader.
Unfortunately i have only one HW config to test this(maybe the problem
is in my HW)

The strange is:
The problem occurs with shader
http://bpaste.net/show/13616/
even if i pass empty arrays into it (imax = 0), so actually shader
should do any distortion work.

And the problem DOES NOT occur with shader
http://bpaste.net/show/13617/

So it has to be something in my shader, but i was thought that code
http://bpaste.net/show/13617/ is the same as (http://bpaste.net/show/
13616/ + if imax = 0)
But why screen blinking occurs? Actually without uniform arrays, by
passing only simple uniform shader works great.

Full code is here:
http://bpaste.net/show/13615/

Could some one test the full code or provide the idea what can cause
sporadic screen blinking.
Looking forwards for you support, i have nothing left to try to
resolve this problem, struggling third day, no luck. Maybe this
blinking is my HW config problem.