Qt5 fix: Mac bindtexture crash, snapshot graph is supposed to be invisible

This commit is contained in:
Mark Watkins 2013-07-28 15:33:44 +10:00
parent 0a7edfa2dd
commit 729e3d198a
2 changed files with 2 additions and 2 deletions

View File

@ -3284,7 +3284,7 @@ void gGraphView::setCubeImage(QImage *img)
cubeimg.clear(); cubeimg.clear();
cubeimg.push_back(img); cubeimg.push_back(img);
cubetex=bindTexture(*img); //cubetex=bindTexture(*img);
glBindTexture(GL_TEXTURE_2D,0); glBindTexture(GL_TEXTURE_2D,0);
} }

View File

@ -70,7 +70,7 @@ Daily::Daily(QWidget *parent,gGraphView * shared)
GraphView=new gGraphView(ui->graphMainArea,shared); GraphView=new gGraphView(ui->graphMainArea,shared);
GraphView->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding); GraphView->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
snapGV=new gGraphView(ui->graphMainArea); snapGV=new gGraphView(GraphView); //ui->graphMainArea);
snapGV->setMinimumSize(172,172); snapGV->setMinimumSize(172,172);
snapGV->hideSplitter(); snapGV->hideSplitter();
snapGV->hide(); snapGV->hide();