Use glFramebufferTexture2D instead of glFramebufferTexture for compatibility.