Fixed texture filtering modes.

This commit is contained in:
Steven Fuller 2001-08-18 02:42:07 +00:00 committed by Patryk Obara
parent c12ec5ff7e
commit 96a5583f3b
4 changed files with 126 additions and 117 deletions

View file

@ -10,7 +10,8 @@ typedef struct DIRECTDRAWSURFACE
int w;
int h;
unsigned char *data;
int filter;
} DIRECTDRAWSURFACE;
typedef DIRECTDRAWSURFACE * LPDIRECTDRAWSURFACE;
@ -22,17 +23,13 @@ typedef struct DIRECT3DTEXTURE
int w;
int h;
unsigned char *data;
int filter;
} DIRECT3DTEXTURE;
typedef DIRECT3DTEXTURE * LPDIRECT3DTEXTURE;
typedef DIRECT3DTEXTURE D3DTexture;
//typedef struct D3DTEXTUREHANDLE
//{
// int x;
//} D3DTEXTUREHANDLE;
typedef int D3DTEXTUREHANDLE;
#endif /* _INCLUDED_AW_H_ */

View file

@ -571,7 +571,6 @@ AwTl::SurfUnion AwBackupTexture::CreateTexture(AwTl::CreateTextureParms const &
/* temp junk */
Tex->w = m_nWidth;
Tex->h = m_nHeight;
Tex->data = NULL;
CreateOGLTexture(Tex, buf); /* this will set the id */
free(buf);