Actually pass QGLFormat to QGLWidget

GGLWidgetInternal wasn't passing the format it received to the parent
constructor, meaning the format wasn't used at all. This make the Qt UI
properly initialize a 3.2 context.
This commit is contained in:
Yuri Kunde Schlesner 2014-08-23 01:45:05 -03:00
parent 3c150c4bdb
commit 2c8ecfbbaa

View File

@ -77,7 +77,7 @@ void EmuThread::Stop()
class GGLWidgetInternal : public QGLWidget class GGLWidgetInternal : public QGLWidget
{ {
public: public:
GGLWidgetInternal(QGLFormat fmt, GRenderWindow* parent) : QGLWidget(parent) GGLWidgetInternal(QGLFormat fmt, GRenderWindow* parent) : QGLWidget(fmt, parent)
{ {
parent_ = parent; parent_ = parent;
} }