mesa/st: Avoid spurious transfers when creating fbo textures without image data.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 14 Apr 2011 14:22:49 +0000 (15:22 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 14 Apr 2011 18:51:45 +0000 (19:51 +0100)
commit6881cfc7f7b425f52ae631936cc53d409f208fa1
treef1645ea3551cbce1088516a7887c4672cbebe15f
parent78e90bf2474b89dcc7cc199ddb360745e93720c6
mesa/st: Avoid spurious transfers when creating fbo textures without image data.

We could actually try to do an early return both for gallium textures and
malloc memory textures, but I'm not sure exactly which situations
stImage->pt is NULL, and whether texImage->Data == NULL would be acceptible
or not.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c