fix compile of qt without egl available
authorChristoph Cullmann <cullmann@kde.org>
Mon, 23 Dec 2013 15:24:10 +0000 (16:24 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Dec 2013 11:24:08 +0000 (12:24 +0100)
commitfe4ebf12696a8e438fa6609552774d1becb14c25
tree87f144c2ca1151e90b62ada1f5610fd49437c3d7
parentecf11d62fc6f57cccf6f3326e768b1c7cabbd0b3
fix compile of qt without egl available

move the dpy to the place where it is used inside the egl ifdef guard
fixes compilation on old distros not having egl

Change-Id: I7eebe5305f3a584c0c5da2ea7b9099fdd994249d
Reviewed-by: David Faure <david.faure@kdab.com>
src/plugins/platforms/xcb/qxcbconnection.cpp