Advertisement
PaleoCrafter

Untitled

Jan 4th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. WORD Depth16 = *(WORD*) LockedRect.pBits;
  2. V(S(pZBuffer->UnlockRect()));
  3. pZBuffer->Release();
  4. pZBuffer = NULL;
  5. T DepthVal = Depth16 * 1.0f / ((1<<16)-1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement