see CanvasGL2d_OpenGL.cs  (last file here)

 //add
registerTextures.Add(bmp, foundTextureId);