*/
#include "config.h"
-#include <assert.h>
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
wined3d_fake_gl_context_hwnd = NULL;
wined3d_fake_gl_context_available = FALSE;
}
- assert(wined3d_fake_gl_context_ref >= 0);
LeaveCriticalSection(&wined3d_fake_gl_context_cs);
}
TRACE("getting context...\n");
if(wined3d_fake_gl_context_ref > 0) goto ret;
- assert(0 == wined3d_fake_gl_context_ref);
wined3d_fake_gl_context_foreign = TRUE;
#include "winerror.h"
#include "wine/debug.h"
-#include <assert.h>
#include <string.h>
#include "wined3d_private.h"
case WINEDDPCAPS_2BIT: return 4;
case WINEDDPCAPS_4BIT: return 16;
case WINEDDPCAPS_8BIT: return 256;
- default: assert(0); return 256;
+ default:
+ FIXME("Unhandled size bits %#x.\n", dwFlags & SIZE_BITS);
+ return 256;
}
}
#include "wine/port.h"
#include "wined3d_private.h"
-#include <assert.h>
-
WINE_DEFAULT_DEBUG_CHANNEL(d3d_surface);
/* See also float_16_to_32() in wined3d_private.h */
dstwidth = xdst.right - xdst.left;
width = (xdst.right - xdst.left) * bpp;
- assert(width <= dlock.Pitch);
-
if (DestRect && Src != This)
dbuf = dlock.pBits;
else
slock.Pitch = dlock.Pitch;
/* Since slock was originally copied from this surface's description, we can just reuse it */
- assert(This->resource.allocatedMemory != NULL);
sbuf = This->resource.allocatedMemory + lock_src.top * pitch + lock_src.left * bpp;
dbuf = This->resource.allocatedMemory + lock_dst.top * pitch + lock_dst.left * bpp;
sEntry = Src->resource.format_desc;
#include "wine/port.h"
#include "wined3d_private.h"
-#include <assert.h>
#include <stdio.h>
/* Use the d3d_surface debug channel to have one channel for all surfaces */