reset the sampler state in context loss 48/27248/2
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Mon, 8 Sep 2014 16:47:40 +0000 (17:47 +0100)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 10 Sep 2014 10:23:20 +0000 (11:23 +0100)
[Problem]
[Cause]
[Solution]

Change-Id: If3e3508e3327ad2ccd1a6fabce3e37f2819dc676

dali/internal/render/gl-resources/texture.cpp

index c0cac8e..6e2c98d 100644 (file)
@@ -154,6 +154,8 @@ void Texture::GlContextDestroyed()
 {
   // texture is gone
   mId = 0;
+  // reset sampler state as well
+  mSamplerBitfield = 0;
 }
 
 void Texture::GlCleanup()