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
commit76169da0e84b0fcf621aeac6141af3ee85bc7c1e (patch)
treef1d58c4a189844408fc15b6c6dad1776c392031a /opengl/tests/gl_basic/gl_basic.cpp
parent86ed86d2260932bdf2217b1d8431ac9e04d47534 (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