mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 685694 - Don't use glDrawBuffer in GLES2. r=matt.woodrow
This commit is contained in:
parent
36002cd0c1
commit
f1a5d4dee8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user