intel: Call intel_prepare_render() in intelMakeCurrent()
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 24 Feb 2010 04:15:20 +0000 (23:15 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 24 Feb 2010 04:20:07 +0000 (23:20 -0500)
commitdb9c151d77d02729d7387213c3f4ee96c65dd0cc
tree26d5bea0a7471ef82ba0592824b661d7909cbc32
parent402f54b0d1f69a2231e42b726ebaf8a726efa307
intel: Call intel_prepare_render() in intelMakeCurrent()

This restores old behaviour, where we end up doing a DRI2GetBuffers()
call from intelMakeCurrent().  The idea was that we could do this
lazily, just before we start rendering.  However, if we don't do the
DRI2GetBuffers() round-trip we don't get the drawable size and higher
level mesa ends up short-cutting a number of GL calls, such as glClear().
src/mesa/drivers/dri/intel/intel_context.c