Fix problem with initial viewport/scissor size.
authorBrian <brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 20:45:00 +0000 (13:45 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 20:45:00 +0000 (13:45 -0700)
commitc664302c3e34a29b4bbb02fd3789dd3f7d92849c
treeb691a49e42d79be672a6f699962327eb6fcba837
parent1575763a6f57d1f13c707b709f188b0617c8955a
Fix problem with initial viewport/scissor size.

If an app never called glViewport, the viewport size was always 0 by 0 pixels.
Now pass initial size to st_create_framebuffer() and initialize the viewport
and scissor bounds in st_make_current().
This could also be fixed by ensuring the gl_framebuffers passed to
_mesa_make_current() were initialized to the right size.  But that involves
allocating the renderbuffers/pipe_surfaces earlier and that runs into some
other issues ATM.
Also remove obsolete createRenderbuffers param to st_create_framebuffer().
src/mesa/drivers/dri/intel_winsys/intel_screen.c
src/mesa/pipe/xlib/xm_api.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_framebuffer.c
src/mesa/state_tracker/st_public.h