mesa: if AllocStorage doesn't choose a format, report FRAMEBUFFER_UNSUPPORTED
authorMarek Olšák <maraeo@gmail.com>
Fri, 15 Jun 2012 15:21:05 +0000 (17:21 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 16 Jun 2012 12:20:26 +0000 (14:20 +0200)
commita82227ce4a60155cb16c47d7315f2efe2e87b0c2
treec54d7221ddc4836cc9a14ae38e06fe35a89c7c63
parent841eee5d44b222a5819804726187683033eb71db
mesa: if AllocStorage doesn't choose a format, report FRAMEBUFFER_UNSUPPORTED

This allows drivers not to do any allocation in AllocStorage if the storage
cannot be allocated because of an unsupported internalformat + samples combo.

The little ugliness is that AllocStorage is expected to return TRUE in this
case.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/fbobject.c