~robertcarr/mir/alpha-and-stuff

Viewing all changes in revision 1173.

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2013-10-29 10:39:40 UTC
  • mfrom: (1161.4.1 development-branch)
  • Revision ID: tarmac-20131029103940-n2jlnhiv73cdsqai
examples: Restore GL state after initializing buffers, fixing crashes 
observed in render_surfaces (LP: #1234563)

Due to the lazy allocation of buffers on the server, buffer
allocation and initialization may occur while the renderer
has already set up its GL state. Ensure that we don't
change the renderer's state when initializing buffers. Fixes: https://bugs.launchpad.net/bugs/1234563.

Approved by Daniel van Vugt, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: