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 5ec4d7121d3c8738927093c5ead081306e57cdde..11eedd923ed2c77e590c20c56a0498ad45e52aac 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;
 }