mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-15 19:20:34 +01:00
texFormat was a random value in _mesa_store_teximage3d(), fix by undoing last changes
This commit is contained in:
parent
19d1e43261
commit
197c526d63
1 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: texstore.c,v 1.19 2001/03/27 19:18:02 gareth Exp $ */
|
||||
/* $Id: texstore.c,v 1.20 2001/03/27 20:26:10 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -486,14 +486,13 @@ _mesa_store_teximage3d(GLcontext *ctx, GLenum target, GLint level,
|
|||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage)
|
||||
{
|
||||
const struct gl_texture_format *texFormat;
|
||||
GLint texelBytes;
|
||||
|
||||
/* setup the teximage struct's fields */
|
||||
_mesa_init_tex_format( ctx, internalFormat, texImage );
|
||||
texImage->FetchTexel = texFormat->FetchTexel3D;
|
||||
texImage->FetchTexel = texImage->TexFormat->FetchTexel3D;
|
||||
|
||||
texelBytes = texFormat->TexelBytes;
|
||||
texelBytes = texImage->TexFormat->TexelBytes;
|
||||
|
||||
/* allocate memory */
|
||||
texImage->Data = (GLchan *) MALLOC(width * height * depth * texelBytes);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue