Fix incorrect warning message in QOpenGLWidget
Change-Id: I3b99894171a3e63b75a14357a1be0c0dd1f45e93 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
parent
52c35c1ce7
commit
f0fecf7b61
@ -639,7 +639,7 @@ GLuint QOpenGLWidgetPrivate::textureId() const
|
||||
Q_Q(const QOpenGLWidget);
|
||||
if (!q->isWindow() && q->internalWinId()) {
|
||||
qWarning() << "QOpenGLWidget cannot be used as a native child widget."
|
||||
<< "Consider setting Qt::AA_DontCreateNativeWidgetAncestors and Siblings.";
|
||||
<< "Consider setting Qt::WA_DontCreateNativeAncestors and Qt::AA_DontCreateNativeWidgetSiblings.";
|
||||
return 0;
|
||||
}
|
||||
return resolvedFbo ? resolvedFbo->texture() : (fbo ? fbo->texture() : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user