wined3d: Make the glram parameter of WineD3DAdapterChangeGLRam signed.

This commit is contained in:
Stefan Dösinger 2011-05-12 17:39:21 +02:00 committed by Alexandre Julliard
parent 8781b58ed9
commit 682bae7c2b
3 changed files with 3 additions and 3 deletions

View File

@ -329,7 +329,7 @@ fail:
}
/* Adjust the amount of used texture memory */
unsigned int WineD3DAdapterChangeGLRam(IWineD3DDeviceImpl *device, unsigned int glram)
unsigned int WineD3DAdapterChangeGLRam(IWineD3DDeviceImpl *device, int glram)
{
struct wined3d_adapter *adapter = device->adapter;

View File

@ -137,7 +137,7 @@ void resource_cleanup(struct wined3d_resource *resource)
if (resource->pool == WINED3DPOOL_DEFAULT)
{
TRACE("Decrementing device memory pool by %u.\n", resource->size);
WineD3DAdapterChangeGLRam(resource->device, -resource->size);
WineD3DAdapterChangeGLRam(resource->device, 0 - resource->size);
}
LIST_FOR_EACH_SAFE(e1, e2, &resource->privateData)

View File

@ -1541,7 +1541,7 @@ struct wined3d_adapter
BOOL initPixelFormats(struct wined3d_gl_info *gl_info, enum wined3d_pci_vendor vendor) DECLSPEC_HIDDEN;
BOOL initPixelFormatsNoGL(struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN;
extern unsigned int WineD3DAdapterChangeGLRam(IWineD3DDeviceImpl *D3DDevice, unsigned int glram) DECLSPEC_HIDDEN;
extern unsigned int WineD3DAdapterChangeGLRam(IWineD3DDeviceImpl *D3DDevice, int glram) DECLSPEC_HIDDEN;
extern void add_gl_compat_wrappers(struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN;
/*****************************************************************************