GLuint WebGL2Context::GetUniformBlockIndex(const WebGLProgram& program, const nsAString& uniformBlockName) { const FuncScope funcScope(*this, "getUniformBlockIndex"); if (IsContextLost()) return 0; if (!ValidateObject("program", program)) return 0; return program.GetUniformBlockIndex(uniformBlockName); }
GLuint WebGL2Context::GetUniformBlockIndex(const WebGLProgram& program, const nsAString& uniformBlockName) { if (IsContextLost()) return 0; if (!ValidateObject("getUniformBlockIndex: program", program)) return 0; return program.GetUniformBlockIndex(uniformBlockName); }