why are you not showing me the return value
I want to see what's going on
This commit is contained in:
parent
d85dd7071a
commit
db14ce602d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue