Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -2730,7 +2730,8 @@ void Application::setupWorldLight() { · 2729 unmodified lines | ||
| 2730 | 2730 | QImage Application::renderAvatarBillboard() { |
| 2731 | 2731 | _textureCache.getPrimaryFramebufferObject()->bind(); |
| 2732 | 2732 | |
| 2733 | − glDisable(GL_BLEND); | |
| 2733 | + // the "glow" here causes an alpha of one | |
| 2734 | + Glower glower; | |
| 2734 | 2735 | |
| 2735 | 2736 | const int BILLBOARD_SIZE = 64; |
| 2736 | 2737 | renderRearViewMirror(QRect(0, _glWidget->getDeviceHeight() - BILLBOARD_SIZE, BILLBOARD_SIZE, BILLBOARD_SIZE), true); |
| @@ -2738,10 +2739,10 @@ QImage Application::renderAvatarBillboard() { · 1 unmodified line | ||
| 2738 | 2739 | QImage image(BILLBOARD_SIZE, BILLBOARD_SIZE, QImage::Format_ARGB32); |
| 2739 | 2740 | glReadPixels(0, 0, BILLBOARD_SIZE, BILLBOARD_SIZE, GL_BGRA, GL_UNSIGNED_BYTE, image.bits()); |
| 2740 | 2741 | |
| 2741 | − glEnable(GL_BLEND); | |
| 2742 | − | |
| 2743 | 2742 | _textureCache.getPrimaryFramebufferObject()->release(); |
| 2744 | 2743 | |
| 2744 | + image.save("billboard.png"); | |
| 2745 | + | |
| 2745 | 2746 | return image; |
| 2746 | 2747 | } |
| 2747 | 2748 | |