From f007a2faa1d765e9b53553a8214179b253e3cbbd Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 28 Oct 2009 21:00:29 -0700 Subject: return proper error code from eglCreateImageKHR --- libs/surfaceflinger/LayerBuffer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/surfaceflinger/LayerBuffer.cpp') diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index 6590503..f70bcf4 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -437,9 +437,7 @@ void LayerBuffer::BufferSource::onDraw(const Region& clip) const } if (err != NO_ERROR) { - // OpenGL fall-back - GLuint w = 0; - GLuint h = 0; + // slower fallback GGLSurface t; t.version = sizeof(GGLSurface); t.width = src.crop.r; -- cgit v1.1