summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-12-09 14:32:56 -0800
committerMathias Agopian <mathias@google.com>2009-12-09 15:26:29 -0800
commitc5e181f8b347ad89874e0c6c7d2eea8d0465a478 (patch)
treeb637cb7ac5eabf5897345fbf7c39ce68ff9e6edb /opengl/tests/gl_basic/gl_basic.cpp
parentcb94f70d5cfecf69f4f470497703befb270f6565 (diff)
fix [2315900] Monochrome camera preview screen after launching camera
this was introduced by a recent change. when we try to figure out the size of the yuv->rgb temporary buffer, the output resolution has not been computed yet and an invalid buffer size is used. most of the time the allocation fails and the system reverts to "standard" GL will uses onle the Y plane. the allocation of the temporary buffer is moved to onDraw(), the first time it is called, by that time, the window is positioned properly.
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions