transfer routines for compressed formats (avoid SEGFAULT, also prepare for external...
authorDaniel Borca <dborca@users.sourceforge.net>
Tue, 27 Apr 2004 05:59:52 +0000 (05:59 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Tue, 27 Apr 2004 05:59:52 +0000 (05:59 +0000)
src/mesa/main/texformat.c

index 08276d828dfa14143a2f2ecb926eb6902b3e2067..9db5364179240a03ef2b7d1a208c5d244d76f457 100644 (file)
@@ -876,7 +876,7 @@ const struct gl_texture_format _mesa_texformat_rgb_fxt1 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgb_fxt1,            /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */
@@ -898,7 +898,7 @@ const struct gl_texture_format _mesa_texformat_rgba_fxt1 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgba_fxt1,           /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */
@@ -920,7 +920,7 @@ const struct gl_texture_format _mesa_texformat_rgb_dxt1 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgb_dxt1,            /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */
@@ -942,7 +942,7 @@ const struct gl_texture_format _mesa_texformat_rgba_dxt1 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgba_dxt1,           /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */
@@ -964,7 +964,7 @@ const struct gl_texture_format _mesa_texformat_rgba_dxt3 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgba_dxt3,           /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */
@@ -986,7 +986,7 @@ const struct gl_texture_format _mesa_texformat_rgba_dxt5 = {
    0,                                  /* IndexBits */
    0,                                  /* DepthBits */
    0,                                  /* TexelBytes */
-   NULL,                               /* StoreTexImageFunc */
+   _mesa_texstore_argb8888,            /* StoreTexImageFunc */
    NULL, /*impossible*/                /* FetchTexel1D */
    fetch_texel_2d_rgba_dxt5,           /* FetchTexel2D */
    NULL, /*impossible*/                /* FetchTexel3D */