summaryrefslogtreecommitdiff
path: root/themes/src/summer
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/summer')
-rw-r--r--themes/src/summer/SummerTheme.cpp3
-rw-r--r--themes/src/summer/SummerTheme.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/themes/src/summer/SummerTheme.cpp b/themes/src/summer/SummerTheme.cpp
index 406cd22..81cc43b 100644
--- a/themes/src/summer/SummerTheme.cpp
+++ b/themes/src/summer/SummerTheme.cpp
@@ -4,7 +4,8 @@
#include "../mathlib.h"
#include <vector>
-void SummerTheme::load(Renderer2d* renderer) {
+void SummerTheme::load(Renderer2d* renderer, WebglContext* context) {
+ renderer->load(context);
renderer->clearColor = Vector4(0, 181, 286, 255.f).toNormalizedColor();
sun.sectors = 180;
sun.radius = renderer->context->width / 4.f;
diff --git a/themes/src/summer/SummerTheme.h b/themes/src/summer/SummerTheme.h
index 4a9f76b..dad4ac9 100644
--- a/themes/src/summer/SummerTheme.h
+++ b/themes/src/summer/SummerTheme.h
@@ -16,7 +16,7 @@ struct Sun {
struct SummerTheme {
Sun sun;
- void load(Renderer2d* renderer);
+ void load(Renderer2d*, WebglContext*);
void update(f32 dtSeconds);
void render(Renderer2d* renderer);
void unload();