public WebGLTexture createTexture() { #if _DEBUG Log.Info("createTexture"); #endif uint textureId; unsafe { Gl.glGenTextures(1, &textureId); } this.ErrorTest(); #if _DEBUG Log.Info(string.Format("value {0}", (int)textureId)); #endif return(new WebGLTextureAdapter(textureId)); }