Use safe glFramebufferTexture* function