<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>I have some heavy rendering that I would like to speed up using openGL. For the time being using only QPainter regular method but later some native openGL code.</p>
<p>So instead of painting on a QImage, I am painting on a QOpenGLPaintDevice. All is fine except one point: When the painter draws a QImage containing alpha, these alpha pixels appear black. CompositionMode is QPainter::CompositionMode_SourceOver and QImage format for the source is QImage::Format_ARGB32_Premultiplied. Same code painting in a QImage works fine.</p>
<p>I have tried to glEnable(GL_BLEND) and glEnable(GL_DEPTH_TEST) and some others but that didn't fix the issue.</p>
<p>Any idea of what needs to be done ?</p>
<p>Many thanks in advance</p>
<p>Philippe Lelong</p>
</body></html>