589 half.width(), half.height(), |
589 half.width(), half.height(), |
590 image.bytesPerLine(), half.bytesPerLine()); |
590 image.bytesPerLine(), half.bytesPerLine()); |
591 |
591 |
592 qt_blurImage(image, r * qreal(0.5), false, 1); |
592 qt_blurImage(image, r * qreal(0.5), false, 1); |
593 |
593 |
594 GLuint texture = generateBlurTexture(image.size(), GL_ALPHA); |
594 GLuint texture; |
595 |
595 glGenTextures(1, &texture); |
596 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, image.width(), image.height(), GL_ALPHA, |
596 glBindTexture(GL_TEXTURE_2D, texture); |
597 GL_UNSIGNED_BYTE, image.bits()); |
597 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, image.width(), image.height(), |
|
598 0, GL_ALPHA, GL_UNSIGNED_BYTE, image.bits()); |
598 |
599 |
599 info = new QGLBlurTextureInfo(image, texture, r); |
600 info = new QGLBlurTextureInfo(image, texture, r); |
600 } |
601 } |
601 |
602 |
602 GLuint texture = info->texture(); |
603 GLuint texture = info->texture(); |