mesa: initialize extension string when context is first bound
authorBrian Paul <brianp@vmware.com>
Thu, 24 Jun 2010 20:10:24 +0000 (14:10 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 25 Jun 2010 14:47:33 +0000 (08:47 -0600)
commita879d14ecf818d767f5da9dd7fd3b0cd8816cf29
tree3ea18cefafc97564458fa8bc281180737cc107bb
parentcc8c142e2ab3575f864bba9e634ec87995aad601
mesa: initialize extension string when context is first bound

...instead of waiting until glGetString(GL_EXTENSIONS) is called.
This fixes a problem where the MESA_EXTENSION_OVERRIDE env var is
ignored if the app never calls glGetString(GL_EXTENSIONS).

NOTE: this is a candidate patch for the 7.8 branch.
src/mesa/main/context.c
src/mesa/main/getstring.c