public void bindFramebuffer(int target, WebGLFramebuffer framebuffer) { var bufferId = (int)(framebuffer != null ? framebuffer.Value : 0); #if _DEBUG Log.Info(string.Format("bindFramebuffer {0} {1}", target, bufferId)); #endif #if GLEW_STATIC Gl.glBindFramebuffer(target, bufferId); #else Gl.__glewBindFramebuffer(target, bufferId); #endif this.ErrorTest(); }