git-svn-id: svn://db.shs.com.ru/libs@422 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -171,6 +171,7 @@ void QGLView::drawBackground(QPainter * painter, const QRectF & rect) {
|
||||
painter_ = painter;
|
||||
painter_->beginNativePainting();
|
||||
if (is_first_draw) {
|
||||
//connect(context(), SIGNAL(aboutToBeDestroyed()), this, SLOT(glCleanup()));
|
||||
resizeGL(viewport()->width(), viewport()->height());
|
||||
initializeGL();
|
||||
}
|
||||
@@ -731,3 +732,13 @@ bool QGLView::setupViewport() {
|
||||
setViewport(_w);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void QGLView::glCleanup() {
|
||||
//qDebug() << "cleanup";
|
||||
/*disconnect(context(), SIGNAL(aboutToBeDestroyed()), this, SLOT(glCleanup()));
|
||||
is_first_draw = true;
|
||||
textures_manager = GLTextureManager();
|
||||
currentQGLView = 0;
|
||||
currentGLTextureManager = 0;*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user