@@ -46,13 +46,6 @@ class AbstractPluginEditor
4646 // Now that layout is fully configured, attach the compositor
4747 addAndMakeVisible (compositor);
4848
49- <<<<<<< HEAD
50- if (OS_IS_WINDOWS ) {
51- setResizable (false , true );
52- }
53-
54- if (OS_IS_DARWIN ) {
55- =======
5649#if OS_IS_DARWIN || OS_IS_LINUX
5750 // Determine if hardware acceleration should be used
5851 bool shouldUseOpenGL = dmt::Settings::useOpenGL;
@@ -70,48 +63,10 @@ class AbstractPluginEditor
7063 } else {
7164 DBG (" [AbstractPluginEditor] Using macOS software renderer" );
7265 }
73- >>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
7466 setResizable (false , true );
7567 }
7668
7769 if (OS_IS_LINUX ) {
78- <<<<<<< HEAD
79- openGLContext.setComponentPaintingEnabled (true );
80- openGLContext.setContinuousRepainting (false );
81- openGLContext.attachTo (*getTopLevelComponent ());
82- std::thread ([this ]() {
83- for (int i = 0 ; i < 200 ; ++i) {
84- if (openGLContext.isAttached () &&
85- openGLContext.getRawContext () != nullptr )
86- break ;
87- std::this_thread::sleep_for (std::chrono::milliseconds (25 ));
88- }
89-
90- if (!openGLContext.isAttached () ||
91- openGLContext.getRawContext () == nullptr )
92- return ;
93-
94- openGLContext.executeOnGLThread (
95- [](juce::OpenGLContext&) {
96- if (juce::gl::glDebugMessageControl) {
97- juce::gl::glDebugMessageControl (
98- juce::gl::GL_DEBUG_SOURCE_API ,
99- juce::gl::GL_DEBUG_TYPE_OTHER ,
100- juce::gl::GL_DEBUG_SEVERITY_NOTIFICATION ,
101- 0 ,
102- nullptr ,
103- juce::gl::GL_FALSE );
104- }
105-
106- if (juce::gl::glDebugMessageCallback)
107- juce::gl::glDebugMessageCallback (juceFilteredGLDebugCallback,
108- nullptr );
109- },
110- true );
111- }).detach ();
112- }
113-
114- =======
11570 // Linux: Use OpenGL for hardware acceleration if enabled
11671 if (shouldUseOpenGL) {
11772 DBG (" [AbstractPluginEditor] Using Linux OpenGL renderer" );
@@ -126,7 +81,6 @@ class AbstractPluginEditor
12681
12782#endif
12883
129- >>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
13084 setConstraints (baseWidth, baseHeight + headerHeight);
13185 setResizable (false , true );
13286
@@ -200,14 +154,11 @@ class AbstractPluginEditor
200154 }
201155
202156 // ==============================================================================
203- <<<<<<< HEAD
204- =======
205157 // Handle peer creation for Windows Direct2D setup
206158
207159 void parentHierarchyChanged () override {}
208160
209161 // ==============================================================================
210- >>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
211162 // JUCE overrides
212163
213164 void setConstraints (int width, int height)
@@ -243,11 +194,7 @@ class AbstractPluginEditor
243194 {
244195 stopTimer ();
245196 attachCompositorAfterResize ();
246- <<<<<<< HEAD
247- repaint (); // TODO: Redundanr call, maybe remove this?
248- =======
249197 repaint (); // TODO: Redundant call, maybe remove this?
250- >>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
251198 }
252199
253200 // Detach compositor to improve resize performance
@@ -311,8 +258,6 @@ class AbstractPluginEditor
311258 }
312259
313260 // ==============================================================================
314- <<<<<<< HEAD
315- =======
316261 // OpenGL initialization
317262
318263 void setupOpenGLContext ()
@@ -356,7 +301,6 @@ class AbstractPluginEditor
356301 }
357302
358303 // ==============================================================================
359- >>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
360304 // OpenGL debug overwrite
361305
362306 static void KHRONOS_APIENTRY
0 commit comments