b=569984; [webgl] verify shader attachment/detachment and program completeness; r=bjacob

This commit is contained in:
Vladimir Vukicevic
2010-06-04 12:03:33 -07:00
parent 93269b61c0
commit 7dfc07d4e5
4 changed files with 144 additions and 61 deletions

View File

@@ -61,6 +61,11 @@ WebGLContext::ValidateBuffers(PRUint32 count)
return PR_FALSE;
}
if (currentProgram != mCurrentProgram->GLName()) {
LogMessage("WebGL internal error: current program doesn't agree with GL current program");
return PR_FALSE;
}
gl->fGetProgramiv(currentProgram, LOCAL_GL_ACTIVE_ATTRIBUTES, &numAttributes);
if (numAttributes == -1) {
// what?