Bug 1014614 - Do not try to use a temporary texture for SurfaceTexture r=jgilbert

--HG--
extra : rebase_source : b2108d17ef5d87328d1dc0e9ff190d667bfeaa44
This commit is contained in:
James Willcox 2014-10-17 10:35:11 -05:00
parent fae8de55c2
commit 84e303ee7e

View File

@ -450,10 +450,8 @@ SurfaceTextureSource::BindTexture(GLenum aTextureUnit, gfx::Filter aFilter)
NS_WARNING("Trying to bind a texture without a GLContext");
return;
}
GLuint tex = mCompositor->GetTemporaryTexture(GetTextureTarget(), aTextureUnit);
gl()->fActiveTexture(aTextureUnit);
gl()->fBindTexture(mTextureTarget, tex);
#ifndef DEBUG
// SurfaceTexture spams us if there are any existing GL errors, so
// we'll clear them here in order to avoid that.