gallium: fix zero-sized viewport bug
authorBrian <brian@poulsbo.localnet.net>
Tue, 26 Feb 2008 21:26:40 +0000 (14:26 -0700)
committerBrian <brian@poulsbo.localnet.net>
Tue, 26 Feb 2008 21:32:57 +0000 (14:32 -0700)
commitb93cf55f4ecd94f5e9d5dda49d9092e3b769d044
treeb56fff0aa9647038ccb2b5fc9233c2a728096438
parent80efc5feb061a8ed9c1e91ad3711547927fa29e3
gallium: fix zero-sized viewport bug

If st_create_framebuffer() is called with width=0, height=0 and the program
never called glViewport, the viewport wasn't properly initalized.  This fixes
that.
src/mesa/state_tracker/st_framebuffer.c