st/mesa: Fix glEGLImageTargetTexture2DOES.
authorChia-I Wu <olv@lunarg.com>
Wed, 25 Aug 2010 18:15:22 +0000 (02:15 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 26 Aug 2010 08:40:01 +0000 (16:40 +0800)
commit0f74efdef05c5c27b3137163d795dc91f34cc114
treec5ce01726a21e8c5952f442da73543bdaf75d1c9
parent4f6faf65d124bd690c4526f4c8e95de4d041601f
st/mesa: Fix glEGLImageTargetTexture2DOES.

stObj->pt should be set in st_bind_surface, just as in st_TexImage.  On
the other hand, st_TexImage should unreference stObj->pt.  It also needs
to initialize the texture image again as _mesa_clear_texture_object
clears the image.
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_cb_texture.c