util: util_dl_close(library) before exiting util_format_s3tc_init.
authorVinson Lee <vlee@vmware.com>
Thu, 8 Apr 2010 07:52:35 +0000 (00:52 -0700)
committerVinson Lee <vlee@vmware.com>
Thu, 8 Apr 2010 07:55:16 +0000 (00:55 -0700)
src/gallium/auxiliary/util/u_format_s3tc.c

index 06cfdcfa8e7a85c3336586e0446317a7f92d46e1..7ebc9f3c437f48bcf2af482c1b8fbd4f14b340f6 100644 (file)
@@ -141,6 +141,7 @@ util_format_s3tc_init(void)
       debug_printf("couldn't reference all symbols in " DXTN_LIBNAME
                    ", software DXTn compression/decompression "
                    "unavailable");
+      util_dl_close(library);
       return;
    }
 
@@ -150,6 +151,7 @@ util_format_s3tc_init(void)
    util_format_dxt5_rgba_fetch = (util_format_dxtn_fetch_t)fetch_2d_texel_rgba_dxt5;
    util_format_dxtn_pack = (util_format_dxtn_pack_t)tx_compress_dxtn;
    util_format_s3tc_enabled = TRUE;
+   util_dl_close(library);
 }