On Sat, Jun 6, 2009 at 2:36 PM, Gary Herron <[email protected]>wrote:
>
> Something in this version caused the caret in a TextInput widget to stop
> drawing.   (You can still edit, but just can't see *where* you are
> editing.)
>
> I've tracked it down to this point:   The existence of an enabled
> texture when calling IncrementalTextLayout.draw() causes the failure.
>
> Here's how to demonstrate this:  In widget.py, surround the e.draw()
> with a disable and re-enable of GL_TEXTURE_2D, and everything seems to
> work well.  (I won't claim this is a proper solution, but it does show
> where the problem is.)
>
>            if isinstance(e, pyglet.text.layout.IncrementalTextLayout):
>                glDisable(GL_TEXTURE_2D)
>            e.draw()
>            if isinstance(e, pyglet.text.layout.IncrementalTextLayout):
>                glEnable(GL_TEXTURE_2D)
>
> If it matters, I'm using pyglet version 1.1.2 on Linux.
>

The 1.0.3 release of about 3 minutes ago fixes this, by implementing proper
batching and texture grouping. Thanks for the bug report anyways ;)

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

--~--~---------~--~----~------------~-------~--~----~
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