Report that we do not support compressed texture yet.

This commit is contained in:
Lionel Ulmer 2002-12-23 02:03:57 +00:00 committed by Alexandre Julliard
parent c6f5baac23
commit f876bf6f67
1 changed files with 6 additions and 0 deletions

View File

@ -341,6 +341,12 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
ddsd.u4.ddpfPixelFormat = This->pixelformat;
}
/* We do not support for now compressed texture formats... */
if (ddsd.u4.ddpfPixelFormat.dwFlags & DDPF_FOURCC)
{
return DDERR_INVALIDPIXELFORMAT;
}
if (!(ddsd.dwFlags & DDSD_PITCH))
{
ddsd.u1.lPitch = DDRAW_width_bpp_to_pitch(ddsd.dwWidth,