зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1381610 - Check bindRenderbuffer called before framebufferRenderbuffer. r=jgilbert
This commit is contained in:
Родитель
ceca1e45b7
Коммит
107a8c4e5b
|
@ -1389,8 +1389,17 @@ WebGLFramebuffer::FramebufferRenderbuffer(const char* funcName, GLenum attachEnu
|
|||
}
|
||||
|
||||
// `rb`
|
||||
if (rb && !mContext->ValidateObject("framebufferRenderbuffer: rb", *rb))
|
||||
return;
|
||||
if (rb) {
|
||||
if (!mContext->ValidateObject("framebufferRenderbuffer: rb", *rb))
|
||||
return;
|
||||
|
||||
if (!rb->mHasBeenBound) {
|
||||
mContext->ErrorInvalidOperation("%s: bindRenderbuffer must be called before"
|
||||
" attachment to %04x",
|
||||
funcName, attachEnum);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// End of validation.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче