[Mesa-dev] [PATCH 65/84] st/nine: Fix NineUnknown_Detach

Axel Davy axel.davy at ens.fr
Wed Dec 7 22:55:38 UTC 2016


We don't bind the container in AddRef.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/iunknown.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/nine/iunknown.h b/src/gallium/state_trackers/nine/iunknown.h
index d357aad..dd1dab9 100644
--- a/src/gallium/state_trackers/nine/iunknown.h
+++ b/src/gallium/state_trackers/nine/iunknown.h
@@ -165,8 +165,7 @@ static inline void
 NineUnknown_Detach( struct NineUnknown *This )
 {
     assert(This->container && !This->forward);
-    if (This->refs)
-        NineUnknown_Unbind(This->container);
+
     if (This->bind)
         NineUnknown_Unbind(This->container);
     This->container = NULL;
-- 
2.10.2



More information about the mesa-dev mailing list