~glmark2-dev/glmark2/libmatrix-util

Viewing all changes in revision 189.

  • Committer: Jesse Barker
  • Date: 2012-01-18 17:13:28 UTC
  • mfrom: (177.2.6 canvas-reset)
  • Revision ID: jesse.barker@linaro.org-20120118171328-xnroue4j287ab7q3
Canvas: This adds logic to the canvas and its derivatives to allow a "reset" of the canvas between scenes. In practice what this does is to create a fresh context for each scene. This puts each scene on a level playing field and insulates the scenes from any resource leakage and any resultant performance degradation. Also included is an option to reuse one context for all scenes (the way things have worked up to now) for the sake of being able to test for resource leakage, etc.

SceneDesktop: A latent bug in the init/release symmetry in the RenderObject and its derivatives was detected as a direct result of the Canvas reset changes. This is also fixed in this branch (these changes should be taken regardless).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: