kopia lustrzana https://github.com/jameshball/osci-render
Switch to Direct2D renderer on Windows
rodzic
631df86a09
commit
ea406551f8
|
@ -5,8 +5,8 @@
|
|||
OscirenderAudioProcessorEditor::OscirenderAudioProcessorEditor(OscirenderAudioProcessor& p)
|
||||
: AudioProcessorEditor(&p), audioProcessor(p), collapseButton("Collapse", juce::Colours::white, juce::Colours::white, juce::Colours::white)
|
||||
{
|
||||
#if !JUCE_MAC
|
||||
// use OpenGL on Windows and Linux for much better performance. The default on Mac is CoreGraphics which is much faster.
|
||||
#if JUCE_LINUX
|
||||
// use OpenGL on Linux for much better performance. The default on Mac is CoreGraphics, and on Window is Direct2D which is much faster.
|
||||
openGlContext.attachTo(*getTopLevelComponent());
|
||||
#endif
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
|
||||
bool usingNativeMenuBar = false;
|
||||
|
||||
#if !JUCE_MAC
|
||||
#if JUCE_LINUX
|
||||
juce::OpenGLContext openGlContext;
|
||||
#endif
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue