diff --git a/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp b/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp index 538867c096..bb256a7967 100644 --- a/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp +++ b/extras/Introjucer/Source/BinaryData/jucer_OpenglComponentTemplate.cpp @@ -27,8 +27,6 @@ public: ~MainContentComponent() { - // (Your class must call this in its destructor to stop the - // rendering callbacks happening after your class has been deleted) shutdownOpenGL(); } @@ -42,13 +40,15 @@ public: void render() override { - OpenGLHelpers::clear (Colours::lightblue); } void paint (Graphics& g) override { - // You can add normal 2D drawing code here, which will be - // drawn over the GL content. + // (Our component is opaque, so we must completely fill the background with a solid colour) + g.fillAll (Colours::black); + + + // You can add your drawing code here! } void resized() override