Hi

I think it is just black at initialization. You need some random values 
in the initial texture to work. (Vista and some other OS/newer driver 
seem to null the texture memory, so no random values are present as in 
older/other systems/drivers).

~DR0ID

Florian Bösch schrieb:
> The wrapper for GLSL (and other things) I wrote (http://
> hg.codeflow.org/gletools) and the subsequent (mandatory) GOL example
> (http://hg.codeflow.org/gletools/file/6ba78b1c86f7/examples/
> game_of_life/app.py) do not suffer the "blackness" problem because it
> uses two textures and switches between them. Draw routine quoted
> below:
>
> @window.event
> def on_draw():
>     global front, back
>
>     framebuffer.textures[0] = front
>
>     window.clear()
>     with nested(framebuffer, program, back):
>         quad()
>
>     with front:
>         quad()
>
>     fps.draw()
>
>     front, back = back, front
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to