Function to get GL texture from a texture object
Fix a bug with the renderer
Use extern definition for shape drawables