mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 19:39:39 +02:00
openglcontrol: qt: invalidate works, patch #27066
git-svn-id: trunk@46940 -
This commit is contained in:
parent
92b8da3b52
commit
285ae1d692
@ -189,6 +189,9 @@ begin
|
||||
AttrList:=CreateOpenGLContextAttrList(DoubleBuffered,RGBA,RedBits,GreenBits,BlueBits,AlphaBits,DepthBits,StencilBits,AUXBuffers);
|
||||
try
|
||||
NewQtWidget:=TQtGLWidget.Create(AWinControl,AParams);
|
||||
NewQtWidget.setAttribute(QtWA_PaintOnScreen);
|
||||
NewQtWidget.setAttribute(QtWA_NoSystemBackground);
|
||||
NewQtWidget.setAttribute(QtWA_OpaquePaintEvent);
|
||||
NewQtWidget.HasPaint:=true;
|
||||
NewQtWidget.xdisplay := QX11Info_display;
|
||||
NewQtWidget.visual:=glXChooseVisual(NewQtWidget.xdisplay,
|
||||
|
Loading…
Reference in New Issue
Block a user