src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
changeset 22 79de32ba3296
parent 19 fcece45ef507
child 29 b72c6db6890b
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   182     if ( (style >= Qt::Dense1Pattern) && (style <= Qt::DiagCrossPattern) ) {
   182     if ( (style >= Qt::Dense1Pattern) && (style <= Qt::DiagCrossPattern) ) {
   183         // Get the image data for the pattern
   183         // Get the image data for the pattern
   184         QImage texImage = qt_imageForBrush(style, false);
   184         QImage texImage = qt_imageForBrush(style, false);
   185 
   185 
   186         glActiveTexture(GL_TEXTURE0 + QT_BRUSH_TEXTURE_UNIT);
   186         glActiveTexture(GL_TEXTURE0 + QT_BRUSH_TEXTURE_UNIT);
   187         ctx->d_func()->bindTexture(texImage, GL_TEXTURE_2D, GL_RGBA, true, QGLContext::InternalBindOption);
   187         ctx->d_func()->bindTexture(texImage, GL_TEXTURE_2D, GL_RGBA, QGLContext::InternalBindOption);
   188         updateTextureFilter(GL_TEXTURE_2D, GL_REPEAT, q->state()->renderHints & QPainter::SmoothPixmapTransform);
   188         updateTextureFilter(GL_TEXTURE_2D, GL_REPEAT, q->state()->renderHints & QPainter::SmoothPixmapTransform);
   189     }
   189     }
   190     else if (style >= Qt::LinearGradientPattern && style <= Qt::ConicalGradientPattern) {
   190     else if (style >= Qt::LinearGradientPattern && style <= Qt::ConicalGradientPattern) {
   191         // Gradiant brush: All the gradiants use the same texture
   191         // Gradiant brush: All the gradiants use the same texture
   192 
   192