mesa: Create the default (name==0) buffer texture.
authorEric Anholt <eric@anholt.net>
Mon, 26 Mar 2012 23:49:23 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:34:30 +0000 (14:34 -0700)
commit18c2ee0df5fa6679996e40c574d37475be230bd7
tree8100bc1ed8c225c3c629fc98cdd7cde6989ce9ee
parentbb430ced7fb2aa26007637a0907d886716e8ddd6
mesa: Create the default (name==0) buffer texture.

All that should be needed is that it exists.  Fixes segfaults on first
_mesa_update_context() with a samplerBuffer-using shader active but
without a particular buffer texture enabled.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texobj.c