ddraw: Do not let the a surface dimension fall to 0.
This commit is contained in:
parent
b4afa19272
commit
75c67f6b45
|
@ -2331,8 +2331,8 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
|
||||||
if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)
|
if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)
|
||||||
{
|
{
|
||||||
level++;
|
level++;
|
||||||
desc2.dwWidth /= 2;
|
if(desc2.dwWidth > 1) desc2.dwWidth /= 2;
|
||||||
desc2.dwHeight /= 2;
|
if(desc2.dwHeight > 1) desc2.dwHeight /= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IDirectDrawImpl_CreateNewSurface(This,
|
hr = IDirectDrawImpl_CreateNewSurface(This,
|
||||||
|
|
Loading…
Reference in New Issue