From: Daniel Borca Date: Tue, 27 Apr 2004 05:59:52 +0000 (+0000) Subject: transfer routines for compressed formats (avoid SEGFAULT, also prepare for external... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc04d041eb0365913553cdea2c07b83dab8f5414;p=mesa.git transfer routines for compressed formats (avoid SEGFAULT, also prepare for external packers) --- diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index 08276d828df..9db53641792 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 */