summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-28 21:00:29 -0700
committerMathias Agopian <mathias@google.com>2009-10-29 16:45:41 -0700
commitdf2d92940550bc68c3c237937bce7ac16d9fa91b (patch)
treea21e5e8b9975cc71a6451739c5cc0e3a025e2c43 /libs/surfaceflinger/LayerBuffer.cpp
parentb0d0de329d73a70e8825ab9a7069b4c56645dc48 (diff)
downloadframeworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.zip
frameworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.tar.gz
frameworks_native-df2d92940550bc68c3c237937bce7ac16d9fa91b.tar.bz2
return proper error code from eglCreateImageKHR
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
-rw-r--r--libs/surfaceflinger/LayerBuffer.cpp4
1 files changed, 1 insertions, 3 deletions
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;