#91 ilutGLTexImage_ wrong texture dimension

open
nobody
None
5
2005-08-26
2005-08-26
Anonymous
No

in ilut_opengl.c
ilutGLTexImage_ function

glTexImage2D(Target, Level,
ilutGLFormat(ImageCopy->Format, ImageCopy->Bpp),
ImageCopy->Width, Image->Height, 0, ImageCopy-
>Format, ImageCopy->Type, ImageCopy->Data);

should be replaced with:

glTexImage2D(Target, Level,
ilutGLFormat(ImageCopy->Format, ImageCopy->Bpp),
ImageCopy->Width, ImageCopy->Height, 0,
ImageCopy->Format, ImageCopy->Type, ImageCopy-
>Data);

( Image->Height replaced with ImageCopy->Height)

Discussion