fix for FromPointerTexture

now handles resource-handle correctly. did not work for handles bigger than int.