Skip to content

Commit 5b81089

Browse files
committed
Tweak build to ensure GL3 is enabled, file browser disabled
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 0a31409 commit 5b81089

File tree

6 files changed

+10
-18
lines changed

6 files changed

+10
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true)
1616
# --------------------------------------------------------------
1717

1818
dgl:
19-
$(MAKE) -C dpf/dgl opengl
19+
$(MAKE) -C dpf/dgl opengl3 FILE_BROWSER_DISABLED=true
2020

2121
plugins: dgl
2222
$(MAKE) all -C plugins/ProM

plugins/ProM/DistrhoUIProM.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ START_NAMESPACE_DISTRHO
3434

3535
DistrhoUIProM::DistrhoUIProM()
3636
: UI(512, 512),
37-
fPM(nullptr)
38-
#ifndef DGL_USE_OPENGL3
39-
, fResizeHandle(this)
40-
#endif
37+
fPM(nullptr),
38+
fResizeHandle(this)
4139
{
4240
const double scaleFactor = getScaleFactor();
4341

@@ -47,10 +45,8 @@ DistrhoUIProM::DistrhoUIProM()
4745
setGeometryConstraints(256*scaleFactor, 256*scaleFactor, true);
4846

4947
// no need to show resize handle if window is user-resizable
50-
#ifndef DGL_USE_OPENGL3
5148
// if (isResizable())
5249
// fResizeHandle.hide();
53-
#endif
5450
}
5551

5652
DistrhoUIProM::~DistrhoUIProM()

plugins/ProM/DistrhoUIProM.hpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,8 @@
1717
#ifndef DISTRHO_UI_PROM_HPP_INCLUDED
1818
#define DISTRHO_UI_PROM_HPP_INCLUDED
1919

20-
#if defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WINDOWS)
21-
# define DGL_USE_OPENGL3
22-
#endif
23-
2420
#include "DistrhoUI.hpp"
25-
26-
#ifndef DGL_USE_OPENGL3
27-
# include "ResizeHandle.hpp"
28-
#endif
21+
#include "ResizeHandle.hpp"
2922

3023
class projectM;
3124

@@ -59,9 +52,7 @@ class DistrhoUIProM : public UI
5952

6053
private:
6154
ScopedPointer<projectM> fPM;
62-
#ifndef DGL_USE_OPENGL3
6355
ResizeHandle fResizeHandle;
64-
#endif
6556

6657
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIProM)
6758
};

plugins/ProM/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ HAVE_PROJECTM = $(shell pkg-config --exists libprojectM && echo true)
2626
# --------------------------------------------------------------
2727
# Import base definitions
2828

29+
FILE_BROWSER_DISABLED = true
2930
include ../../dpf/Makefile.base.mk
3031

3132
# --------------------------------------------------------------
@@ -105,6 +106,7 @@ endif # !HAVE_PROJECTM
105106
# --------------------------------------------------------------
106107
# Do some magic
107108

109+
UI_TYPE = opengl3
108110
USE_VST2_BUNDLE = true
109111
include ../../dpf/Makefile.plugins.mk
110112

plugins/ProM/ResizeHandle.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class ResizeHandle : public TopLevelWidget
5555
protected:
5656
void onDisplay() override
5757
{
58+
// TODO implement gl3 stuff in DPF
59+
#ifndef DGL_USE_OPENGL3
5860
const GraphicsContext& context(getGraphicsContext());
5961
const double lineWidth = 1.0 * getScaleFactor();
6062

@@ -77,6 +79,7 @@ class ResizeHandle : public TopLevelWidget
7779
l1b.draw(context, lineWidth);
7880
l2b.draw(context, lineWidth);
7981
l3b.draw(context, lineWidth);
82+
#endif
8083
}
8184

8285
bool onMouse(const MouseEvent& ev) override

0 commit comments

Comments
 (0)