b=569984; [webgl] verify shader attachment/detachment and program completeness; r=bjacob
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user