intel: Fix initial MakeCurrent for single-buffer drawables
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 21 Jan 2014 20:17:03 +0000 (12:17 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 Jan 2014 20:30:59 +0000 (12:30 -0800)
commit11baad35088dfd4bdabc1710df650dbfb413e7a3
treeb5ada259fdafc47daf8d45256c6d4bc19fdc9da8
parent0da1a2cc369052643ccaea75a1722cc37652d82a
intel: Fix initial MakeCurrent for single-buffer drawables

Commit 05da4a7a5e7d5bd988cb31f94ed8e1f053d9ee39 attempts to eliminate the
call to intel_update_renderbuffer() in the case where we already have a
drawbuffer for the drawable.  Unfortunately this only checks the
back left renderbuffer, which breaks in case of single buffer drawables.

This means that the initial viewport will not be set in that case.  Instead,
we now check whether the initial viewport has not been set, in which case
we call out to intel_update_renderbuffer().

https://bugs.freedesktop.org/show_bug.cgi?id=73862

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_context.c