st/vega: Remove an invalid sanity check.
authorChia-I Wu <olv@lunarg.com>
Sun, 30 Jan 2011 15:09:42 +0000 (23:09 +0800)
committerChia-I Wu <olv@lunarg.com>
Sun, 30 Jan 2011 15:22:40 +0000 (23:22 +0800)
Before create_handle returns, obj->handle is 0.  Calling
handle_to_object will fail.

src/gallium/state_trackers/vega/handle.c

index 5ec4d71..11eedd9 100644 (file)
@@ -81,12 +81,6 @@ create_handle(void *object)
 {
    VGHandle h = next_handle++;
    util_hash_table_set(handle_hash, intptr_to_pointer(h), object);
-#if DEBUG
-   {
-      void *v = handle_to_object(h);
-      assert(v == object);
-   }
-#endif
    return h;
 }