From: Brian Paul Date: Fri, 30 Mar 2001 15:31:44 +0000 (+0000) Subject: texImage->FetchTexel wasn't getting initialized in _mesa_CopyTexImage1/2D() X-Git-Tag: 062012170305~27274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e116d3b3e55a70ceb4af270ecd1b614117f631a2;p=profile%2Fivi%2Fmesa.git texImage->FetchTexel wasn't getting initialized in _mesa_CopyTexImage1/2D() --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index d14f577..6f13cc5 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1,4 +1,4 @@ -/* $Id: teximage.c,v 1.89 2001/03/28 21:36:31 gareth Exp $ */ +/* $Id: teximage.c,v 1.90 2001/03/30 15:31:44 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1348,6 +1348,7 @@ _mesa_TexImage1D( GLenum target, GLint level, GLint internalFormat, ASSERT(texImage->TexFormat); texImage->FetchTexel = texImage->TexFormat->FetchTexel1D; + ASSERT(texImage->FetchTexel); /* state update */ texObj->Complete = GL_FALSE; @@ -1457,6 +1458,7 @@ _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat, ASSERT(texImage->TexFormat); texImage->FetchTexel = texImage->TexFormat->FetchTexel2D; + ASSERT(texImage->FetchTexel); /* state update */ texObj->Complete = GL_FALSE; @@ -1560,6 +1562,7 @@ _mesa_TexImage3D( GLenum target, GLint level, GLenum internalFormat, ASSERT(texImage->TexFormat); texImage->FetchTexel = texImage->TexFormat->FetchTexel3D; + ASSERT(texImage->FetchTexel); /* state update */ texObj->Complete = GL_FALSE; @@ -1784,6 +1787,10 @@ _mesa_CopyTexImage1D( GLenum target, GLint level, (*ctx->Driver.CopyTexImage1D)(ctx, target, level, internalFormat, x, y, width, border); + ASSERT(texImage->TexFormat); + texImage->FetchTexel = texImage->TexFormat->FetchTexel1D; + ASSERT(texImage->FetchTexel); + /* state update */ texObj->Complete = GL_FALSE; ctx->NewState |= _NEW_TEXTURE; @@ -1840,6 +1847,10 @@ _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat, (*ctx->Driver.CopyTexImage2D)(ctx, target, level, internalFormat, x, y, width, height, border); + ASSERT(texImage->TexFormat); + texImage->FetchTexel = texImage->TexFormat->FetchTexel2D; + ASSERT(texImage->FetchTexel); + /* state update */ texObj->Complete = GL_FALSE; ctx->NewState |= _NEW_TEXTURE;