public void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level) { #if _DEBUG Log.Info(string.Format("framebufferTexture2D {0} {1} {2} {3} {4}", target, attachment, textarget, texture != null ? texture.Value : 0, level)); #endif #if GLEW_STATIC Gl.glFramebufferTexture2D(target, attachment, textarget, (int)(texture != null ? texture.Value : 0), level); #else Gl.__glewFramebufferTexture2D(target, attachment, textarget, (int)(texture != null ? texture.Value : 0), level); #endif this.ErrorTest(); }