util: Don't call util_dl_close(library) when util_format_s3tc_init is successful."
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Apr 2010 09:36:16 +0000 (10:36 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Apr 2010 09:36:16 +0000 (10:36 +0100)
Otherwise the library will be unloaded and function pointers become invalid.

This reverts commit bc2bc0306e4dd8c56bd66a8aabf2433f6689653d.

src/gallium/auxiliary/util/u_format_s3tc.c

index 7ebc9f3c437f48bcf2af482c1b8fbd4f14b340f6..d1f45d751fa8388157368d33827ac46b76658d7f 100644 (file)
@@ -151,7 +151,6 @@ 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);
 }