From bc04d041eb0365913553cdea2c07b83dab8f5414 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Tue, 27 Apr 2004 05:59:52 +0000 Subject: transfer routines for compressed formats (avoid SEGFAULT, also prepare for external packers) --- src/mesa/main/texformat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index 08276d828d..9db5364179 100644 --- a/src/mesa/main/texformat.c +++ b/src/mesa/main/texformat.c @@ -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 */ -- cgit v1.2.3