st/mesa: return success/fail from guess_and_alloc_texture()
authorBrian Paul <brianp@vmware.com>
Tue, 4 May 2010 16:30:52 +0000 (10:30 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 4 May 2010 16:32:02 +0000 (10:32 -0600)
commit2b53f4a9c674e9b02df8a06759e7a2340f257081
treee8af7d3bd29b3f9e03d92cfd421548a17de7135a
parentc2b47a75577c881ab88b0715791d24d9a9f8ee7e
st/mesa: return success/fail from guess_and_alloc_texture()

Before we looked at stObj->pt to see if we may have run out of memory,
but that's not a good indicator.  This fixes the spurious GL_OUT_OF_MEMORY
errors that could arise before.
src/mesa/state_tracker/st_cb_texture.c