DXGL r43 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r42‎ | r43 | r44 >
Date:01:31, 25 December 2011
Author:admin
Status:new
Tags:
Comment:
Remove DDSD_CAPS validation on surface creation. Adds compatibility with Lands of Lore: Guardians of Destiny.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -148,11 +148,6 @@
149149 }
150150 LONG sizes[6];
151151 ddInterface->GetSizes(sizes);
152 - if(!(ddsd.dwFlags & DDSD_CAPS))
153 - {
154 - *error = DDERR_INVALIDPARAMS;
155 - return;
156 - }
157152 if(ddsd.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
158153 {
159154 if(((ddsd.dwFlags & DDSD_WIDTH) || (ddsd.dwFlags & DDSD_HEIGHT)