mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1314505 - Execute ErrorInvalidOperation if IsLinked() returns false. r=mtseng
This commit is contained in:
parent
433c0df4cc
commit
260e5a5de0
@ -906,6 +906,12 @@ void
|
||||
WebGLProgram::GetUniformIndices(const dom::Sequence<nsString>& uniformNames,
|
||||
dom::Nullable< nsTArray<GLuint> >& retval) const
|
||||
{
|
||||
const char funcName[] = "getUniformIndices";
|
||||
if (!IsLinked()) {
|
||||
mContext->ErrorInvalidOperation("%s: `program` must be linked.", funcName);
|
||||
return;
|
||||
}
|
||||
|
||||
size_t count = uniformNames.Length();
|
||||
nsTArray<GLuint>& arr = retval.SetValue();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user