fix components initialization in two places (Ewald Snel)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 15:17:57 +0000 (15:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 15:17:57 +0000 (15:17 +0000)
src/mesa/main/texstore.c

index 64a74761472511dff8e76ff3961e73d5bf622349..717551d716cc0fe422f6d11f60b6e4510b577e1b 100644 (file)
@@ -2051,7 +2051,7 @@ _mesa_texstore_z24_s8(STORE_PARAMS)
 GLboolean
 _mesa_texstore_rgba_float32(STORE_PARAMS)
 {
-   const GLint components = _mesa_components_in_format(baseInternalFormat);
+   const GLint components = _mesa_components_in_format(dstFormat->BaseFormat);
 
    ASSERT(dstFormat == &_mesa_texformat_rgba_float32 ||
           dstFormat == &_mesa_texformat_rgb_float32 ||
@@ -2119,7 +2119,7 @@ _mesa_texstore_rgba_float32(STORE_PARAMS)
 GLboolean
 _mesa_texstore_rgba_float16(STORE_PARAMS)
 {
-   const GLint components = _mesa_components_in_format(baseInternalFormat);
+   const GLint components = _mesa_components_in_format(dstFormat->BaseFormat);
 
    ASSERT(dstFormat == &_mesa_texformat_rgba_float16 ||
           dstFormat == &_mesa_texformat_rgb_float16 ||