mesa: don't call ctx->Driver.ClearBufferSubData() if size==0
authorBrian Paul <brianp@vmware.com>
Mon, 3 Mar 2014 16:59:45 +0000 (09:59 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Mar 2014 17:41:42 +0000 (10:41 -0700)
commitaff7c5e78ab133866a90f67613508735c9b75094
treece77a53bdd6af831dd79f78088fd8a3f920f4d73
parent465b2c42bca59f0f198aeb8543cfabd5989584b4
mesa: don't call ctx->Driver.ClearBufferSubData() if size==0

Fixes failed assertion when trying to map zero-length region.

https://bugs.freedesktop.org/show_bug.cgi?id=75660
Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/bufferobj.c