Encapsulate attributes and uniforms within Program
Document that apps should retain `GlUtil.Program` while the program is in use, and keep a reference to attributes/uniforms within the program to make sure they don't get GC'd causing any allocated buffers passed to GL to become invalid. Tested manually by running gldemo and transformer. PiperOrigin-RevId: 411516894
Showing
with
82 additions
and
157 deletions
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment