Bug 685694 - Don't use glDrawBuffer in GLES2. r=matt.woodrow

This commit is contained in:
Benoit Girard 2011-09-08 14:21:36 -07:00
parent 36002cd0c1
commit f1a5d4dee8

View File

@ -1018,13 +1018,13 @@ LayerManagerOGL::CopyToTarget()
mGLContext->fBindFramebuffer(LOCAL_GL_FRAMEBUFFER,
mGLContext->IsDoubleBuffered() ? 0 : mBackBufferFBO);
#ifndef USE_GLES2
// GLES2 promises that binding to any custom FBO will attach
// to GL_COLOR_ATTACHMENT0 attachment point.
if (mGLContext->IsDoubleBuffered()) {
mGLContext->fReadBuffer(LOCAL_GL_BACK);
}
#ifndef USE_GLES2
else {
// GLES2 promises that binding to any custom FBO will attach
// to GL_COLOR_ATTACHMENT0 attachment point.
mGLContext->fReadBuffer(LOCAL_GL_COLOR_ATTACHMENT0);
}
#endif