From c9c85fb2d246799ee40dc2373b5322625a74f47e Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 21 Oct 2011 16:18:48 -0700 Subject: [PATCH] CherryPick f9e455 from master to mr0. do not merge. Fix software GL renderer. Change-Id: I7273a8e65c23a0032d155ea6572de2923791e411 --- services/surfaceflinger/Layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index f885fc7fb..50b86043d 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -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);