dri3: Fix MakeCurrent without a default framebuffer
authorFredrik Höglund <fredrik@kde.org>
Sun, 1 Jan 2017 14:34:17 +0000 (15:34 +0100)
committerFredrik Höglund <fredrik@kde.org>
Thu, 5 Jan 2017 19:52:01 +0000 (20:52 +0100)
commitb6670157d742548e7f2430614786c733eb4c20e9
tree17d343dad71a46720548872efa329af4cbcd9abf
parente16245b3393911d703b688adb3ebf161e0b9ba8a
dri3: Fix MakeCurrent without a default framebuffer

In OpenGL 3.0 and later it is legal to make a context current without
a default framebuffer.

This has been broken since DRI3 support was introduced.

Cc: "13.0 12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/glx/dri3_glx.c