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

This commit is contained in:
James Willcox
2014-10-17 10:35:11 -05:00
parent 369a773661
commit f24f3efdd8

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.