fixed handling of uint resource handle
Merge pull request #42 from joreg/b30

fix for FromPointerTexture