Factorized some PBuffer creation code (will be reused later)
Factorized some PBuffer creation code (will be reused later)

ptitSeb/gl4es,ptitSeb/gl4es,ptitSeb/glshim,ptitSeb/gl4es,ptitSeb/glshim,ptitSeb/glshim,ptitSeb/gl4es,ptitSeb/glshim