mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 14:40:25 +02:00
Qt5: make opengl compileable under qt5 widgetset
git-svn-id: trunk@59253 -
This commit is contained in:
parent
de1fe8d7e5
commit
fdf9177fb1
@ -20,7 +20,8 @@ uses
|
|||||||
InterfaceBase,
|
InterfaceBase,
|
||||||
WSLCLClasses,glx,
|
WSLCLClasses,glx,
|
||||||
// Bindings
|
// Bindings
|
||||||
qt4,
|
{$IFDEF LCLQt}qt4,{$ENDIF}
|
||||||
|
{$IFDEF LCLQt5}qt5,{$ENDIF}
|
||||||
qtwidgets, qtobjects, qtproc, qtint,
|
qtwidgets, qtobjects, qtproc, qtint,
|
||||||
QtWSControls;
|
QtWSControls;
|
||||||
|
|
||||||
|
@ -68,6 +68,13 @@ unit OpenGLContext;
|
|||||||
{$DEFINE HasRGBBits}
|
{$DEFINE HasRGBBits}
|
||||||
{$DEFINE OpenGLTargetDefined}
|
{$DEFINE OpenGLTargetDefined}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$IFDEF LCLQT5}
|
||||||
|
{$DEFINE UseQTGLX}
|
||||||
|
{$DEFINE UsesModernGL}
|
||||||
|
{$DEFINE HasRGBA}
|
||||||
|
{$DEFINE HasRGBBits}
|
||||||
|
{$DEFINE OpenGLTargetDefined}
|
||||||
|
{$ENDIF}
|
||||||
{$IFNDEF OpenGLTargetDefined}
|
{$IFNDEF OpenGLTargetDefined}
|
||||||
{$ERROR this LCL widgetset/OS is not yet supported}
|
{$ERROR this LCL widgetset/OS is not yet supported}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user