Bind texture in WaylandSurfaceItem::updateTexture
authorAndy Nichols <andy.nichols@nokia.com>
Mon, 4 Jun 2012 11:10:51 +0000 (13:10 +0200)
committerAndy Nichols <andy.nichols@nokia.com>
Mon, 4 Jun 2012 11:35:40 +0000 (13:35 +0200)
commitca9f6c478c9ca0825ba537e613ab707d675495b6
treea5d42114ea75d77ef75a9cb840ae15b7eeff60ca
parenta2b92975b2f0f3b0a2a34592cf6f1b47b6064e66
Bind texture in WaylandSurfaceItem::updateTexture

This avoids a race condition where we delete the
resource behind the texture before we get a chance
to upload it.

Change-Id: I19d126ecf3fcb5141c6630cd8e783647ea6a779c
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/compositor/compositor_api/waylandsurfaceitem.cpp