CherryPick f9e455 from master to mr0. do not merge.

Fix software GL renderer.

Change-Id: I7273a8e65c23a0032d155ea6572de2923791e411
This commit is contained in:
Xavier Ducrohet 2011-10-21 16:18:48 -07:00
parent d4f3e054e0
commit c9c85fb2d2

View File

@ -284,8 +284,8 @@ void Layer::onDraw(const Region& clip) const
glMatrixMode(GL_TEXTURE);
glLoadMatrixf(mTextureMatrix);
glMatrixMode(GL_MODELVIEW);
glEnable(GL_TEXTURE_EXTERNAL_OES);
glDisable(GL_TEXTURE_2D);
glEnable(GL_TEXTURE_EXTERNAL_OES);
} else {
glBindTexture(GL_TEXTURE_2D, mFlinger->getProtectedTexName());
glMatrixMode(GL_TEXTURE);