Bug 942507 - GLContext doesn't need to have userdata. r=bjacob

This commit is contained in:
Dan Glastonbury
2013-12-06 10:23:16 -05:00
parent 458086e41e
commit 322cce7ba6
4 changed files with 6 additions and 24 deletions

View File

@@ -449,9 +449,7 @@ ShaderProgramOGL::Activate()
}
NS_ASSERTION(HasInitialized(), "Attempting to activate a program that's not in use!");
mGL->fUseProgram(mProgram);
#if CHECK_CURRENT_PROGRAM
mGL->SetUserData(&sCurrentProgramKey, this);
#endif
// check and set the projection matrix
if (mIsProjectionMatrixStale) {
SetProjectionMatrix(mProjectionMatrix);