mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
texImage->FetchTexel wasn't getting initialized in _mesa_CopyTexImage1/2D()
This commit is contained in:
parent
7b0b2ec73a
commit
e116d3b3e5
1 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue