Bug 989575 - Generate INVALID_OP for null-program draws. - r=kamidphish

This commit is contained in:
Jeff Gilbert 2014-04-01 23:12:43 -07:00
Родитель 98ab9ed66a
Коммит 1beecde47e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -69,9 +69,9 @@ bool WebGLContext::DrawArrays_check(GLint first, GLsizei count, GLsizei primcoun
return false;
}
// If there is no current program, this is silently ignored.
// Any checks below this depend on a program being available.
if (!mCurrentProgram) {
ErrorInvalidOperation("%s: null CURRENT_PROGRAM", info);
return false;
}
@ -210,9 +210,9 @@ WebGLContext::DrawElements_check(GLsizei count, GLenum type,
return false;
}
// If there is no current program, this is silently ignored.
// Any checks below this depend on a program being available.
if (!mCurrentProgram) {
ErrorInvalidOperation("%s: null CURRENT_PROGRAM", info);
return false;
}