Report that we do not support compressed texture yet.
This commit is contained in:
parent
c6f5baac23
commit
f876bf6f67
|
@ -341,6 +341,12 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
|
||||||
ddsd.u4.ddpfPixelFormat = This->pixelformat;
|
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))
|
if (!(ddsd.dwFlags & DDSD_PITCH))
|
||||||
{
|
{
|
||||||
ddsd.u1.lPitch = DDRAW_width_bpp_to_pitch(ddsd.dwWidth,
|
ddsd.u1.lPitch = DDRAW_width_bpp_to_pitch(ddsd.dwWidth,
|
||||||
|
|
Loading…
Reference in New Issue