diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index f5483239..4cd1d5be 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -847,7 +847,7 @@ void gToolTip::paint() //actually paints it. painter.end(); if (usepixmap) { - m_textureID=m_graphview->bindTexture(m_pixmap); + m_textureID=m_graphview->bindTexture(m_pixmap,GL_TEXTURE_2D,GL_RGBA,QGLContext::InvertedYBindOption); m_invalidate=false; } } @@ -2338,7 +2338,7 @@ void gGraphView::DrawTextQue() pc->pixmap=pm; pixmap_cache_size+=pm->width()*pm->height()*(pm->depth()/8); - pc->textureID=bindTexture(*pm); + pc->textureID=bindTexture(*pm,GL_TEXTURE_2D,GL_RGBA,QGLContext::InvertedYBindOption); pixmap_cache[hstr]=pc; } diff --git a/Graphs/gXAxis.cpp b/Graphs/gXAxis.cpp index b7575042..58f10c6a 100644 --- a/Graphs/gXAxis.cpp +++ b/Graphs/gXAxis.cpp @@ -247,7 +247,7 @@ void gXAxis::paint(gGraph & w,int left,int top, int width, int height) if (usepixmap) { painter.end(); - m_textureID=w.graphView()->bindTexture(m_pixmap); + m_textureID=w.graphView()->bindTexture(m_pixmap,GL_TEXTURE_2D,GL_RGBA,QGLContext::InvertedYBindOption); } w.invalidate_xAxisImage=false; diff --git a/Graphs/gYAxis.cpp b/Graphs/gYAxis.cpp index 9ce4c276..a0c6372b 100644 --- a/Graphs/gYAxis.cpp +++ b/Graphs/gYAxis.cpp @@ -250,7 +250,7 @@ void gYAxis::paint(gGraph & w,int left,int top, int width, int height) } paint.end(); //yAxisImage=QGLWidget::convertToGLFormat(pixmap.toImage().mirrored(false,true)); - yAxisImageTex=w.graphView()->bindTexture(yAxisImage); + yAxisImageTex=w.graphView()->bindTexture(yAxisImage,GL_TEXTURE_2D,GL_RGBA,QGLContext::InvertedYBindOption); w.invalidate_yAxisImage=false; }