summaryrefslogtreecommitdiff
path: root/src/video/opengl.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-21 22:17:11 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commitb4a3bc1ffe5e1692ab5a53ac936ac67b256be621 (patch)
tree543adb743164173c6bcd4e5ae71950d7c0085226 /src/video/opengl.h
parent7f55f0a264aa6070865ac311942c3bbf7f1e1319 (diff)
downloadopenttd-b4a3bc1ffe5e1692ab5a53ac936ac67b256be621.tar.xz
Codechange: [OpenGL] Separate context state setup from general init.
Diffstat (limited to 'src/video/opengl.h')
-rw-r--r--src/video/opengl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/opengl.h b/src/video/opengl.h
index d910ca3bf..86c0b0d17 100644
--- a/src/video/opengl.h
+++ b/src/video/opengl.h
@@ -73,6 +73,8 @@ public:
static const char *Create(GetOGLProcAddressProc get_proc);
static void Destroy();
+ void PrepareContext();
+
void UpdatePalette(const Colour *pal, uint first, uint length);
bool Resize(int w, int h, bool force = false);
void Paint();