Commit cd2a51a6 authored by Andy Nichols's avatar Andy Nichols Committed by The Qt Project
Browse files

Fix Invalid Drawable error for QGLWidget on Mac


You are not supposed to call NSOpenGLContext -setView: for a view that
has not yet called drawRect.  We we attempted to do this, we would get
the invalid drawable error, leading to QGLWidgets just drawing garbage.

Task-number: QTBUG-28175
Change-Id: I47aef07b4676f2db8591f98fc1661f6f447bdef9
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
parent 07497505
No related merge requests found
Showing with 19 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment