Use VirtualDisplay as texture source, seems only render the topleft point of the display
BennyWang opened this issue · 1 comments
BennyWang commented
In my project, I want render a virtual display use opengl and then encode to H264 stream, I change some code of VideoActivity
Instead pass surface to VideoPlay, I use it to create VirtualDisplay, then show a simple Presentation on it.
The third picture is the layout of my presentation, on top left, I have 1dp x 1dp ImageView with background color #ffff00.
the forth picture is actual render result, It seems it just render top left point of my layout, other part of my layout does't show up.
I'm new to opengl, I google this problem and found nothing.
Please help me! thanks.
BennyWang commented
fixed by call setDefaultBufferSize