why are you not showing me the return value

I want to see what's going on
This commit is contained in:
tildearrow 2023-06-13 04:16:19 -05:00
parent d85dd7071a
commit db14ce602d
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ bool FurnaceGUIRenderDX11::lockTexture(void* which, void** data, int* pitch) {
HRESULT result=context->Map(t->tex,D3D11CalcSubresource(0,0,1),D3D11_MAP_WRITE,0,&mappedRes);
if (result!=S_OK) {
logW("could not map texture!");
logW("could not map texture! %.8x",result);
return false;
}
t->lockedData=(unsigned char*)mappedRes.pData;