- fix bad TRACE

- fixed computation of memory used by a texture
This commit is contained in:
Lionel Ulmer 2002-12-16 23:10:27 +00:00 committed by Alexandre Julliard
parent 16fcd747af
commit 6ac84072da
2 changed files with 2 additions and 3 deletions

View File

@ -652,8 +652,7 @@ GL_IDirect3DTextureImpl_2_1T_Load(LPDIRECT3DTEXTURE2 iface,
if (glThis->loaded == FALSE) {
/* Only check memory for not already loaded texture... */
mem_used = This->surface_desc.dwHeight *
This->surface_desc.dwHeight *
This->surface_desc.u4.ddpfPixelFormat.u1.dwRGBBitCount;
This->surface_desc.u1.lPitch;
if (This->ddraw_owner->allocate_memory(This->ddraw_owner, mem_used) < 0) {
TRACE(" out of virtual memory... Warning application.\n");
return D3DERR_TEXTURE_LOAD_FAILED;

View File

@ -1115,7 +1115,7 @@ Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
if (TRACE_ON(ddraw)) {
TRACE(" Asking for memory of type : \n");
DDRAW_dump_DDSCAPS2(ddscaps);
DDRAW_dump_DDSCAPS2(ddscaps); DPRINTF("\n");
}
/* We have 16 MB videomemory */