bug fixes, and 3d textures

fixed bugs with opengl wrapper and depth textures,
added 3d textures sample