b=569985; don't allow webgl objects from other contexts to be used; r=bjacob

This commit is contained in:
Vladimir Vukicevic
2010-06-04 12:03:37 -07:00
parent 7dfc07d4e5
commit 37a1c8362c
4 changed files with 265 additions and 176 deletions

View File

@@ -62,7 +62,7 @@ WebGLContext::ValidateBuffers(PRUint32 count)
}
if (currentProgram != mCurrentProgram->GLName()) {
LogMessage("WebGL internal error: current program doesn't agree with GL current program");
LogMessage("WebGL internal error: current program (%d) doesn't agree with GL current program (%d)", mCurrentProgram->GLName(), currentProgram);
return PR_FALSE;
}