mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +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,
|
||||
WSLCLClasses,glx,
|
||||
// Bindings
|
||||
qt4,
|
||||
{$IFDEF LCLQt}qt4,{$ENDIF}
|
||||
{$IFDEF LCLQt5}qt5,{$ENDIF}
|
||||
qtwidgets, qtobjects, qtproc, qtint,
|
||||
QtWSControls;
|
||||
|
||||
|
@ -68,6 +68,13 @@ unit OpenGLContext;
|
||||
{$DEFINE HasRGBBits}
|
||||
{$DEFINE OpenGLTargetDefined}
|
||||
{$ENDIF}
|
||||
{$IFDEF LCLQT5}
|
||||
{$DEFINE UseQTGLX}
|
||||
{$DEFINE UsesModernGL}
|
||||
{$DEFINE HasRGBA}
|
||||
{$DEFINE HasRGBBits}
|
||||
{$DEFINE OpenGLTargetDefined}
|
||||
{$ENDIF}
|
||||
{$IFNDEF OpenGLTargetDefined}
|
||||
{$ERROR this LCL widgetset/OS is not yet supported}
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user