diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 15:17:57 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 15:17:57 +0000 |
commit | e5b6eee15d4ca3feff8c2759595b1327afa584c3 (patch) | |
tree | d2c1a42d64d8f19d1070a086dd6769f7b5da7c65 | |
parent | 006e183b6edb4d4a7cce69c42939ec24fe41578d (diff) |
fix components initialization in two places (Ewald Snel)
-rw-r--r-- | src/mesa/main/texstore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 64a7476147..717551d716 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -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 || |