diff options
| author | Mathias Agopian <mathias@google.com> | 2009-11-16 14:55:36 -0800 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-11-16 14:55:36 -0800 |
| commit | 1c0bebbc9548dfe929f0f9db4473eb93af9339f5 (patch) | |
| tree | 6a42ca05daf36ae91814f50c20ac6f101ca23a59 /libs/surfaceflinger/LayerBlur.cpp | |
| parent | 19e420c52dbe42e5b4b8b3580a5e7908cebec89d (diff) | |
| download | frameworks_base-1c0bebbc9548dfe929f0f9db4473eb93af9339f5.zip frameworks_base-1c0bebbc9548dfe929f0f9db4473eb93af9339f5.tar.gz frameworks_base-1c0bebbc9548dfe929f0f9db4473eb93af9339f5.tar.bz2 | |
fix [2262591] Junk on screen in ERD46
since we're using the GPU for composition, don't use a texture for dimming,
instead simply use an alpha-blended quad.
also workaround what looks like a GL driver bug by calling glFinish() before
glReadPixels().
Diffstat (limited to 'libs/surfaceflinger/LayerBlur.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBlur.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBlur.cpp b/libs/surfaceflinger/LayerBlur.cpp index 5fd7904..5d4a38b 100644 --- a/libs/surfaceflinger/LayerBlur.cpp +++ b/libs/surfaceflinger/LayerBlur.cpp @@ -169,6 +169,7 @@ void LayerBlur::onDraw(const Region& clip) const // This reads the frame-buffer, so a h/w GL would have to // finish() its rendering first. we don't want to do that // too often. Read data is 4-bytes aligned. + glFinish(); glReadPixels(X, Y, w, h, mReadFormat, mReadType, pixels); // blur that texture. |
