summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r--src/graphicsvertexes.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 4a299620d..a74d6558b 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -234,6 +234,15 @@ std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL()
return &sdl[mPtr].mList;
}
+ImageVertexes::ImageVertexes() :
+ image(nullptr)
+{
+ sdl.reserve(30);
+#ifdef USE_OPENGL
+ ogl = new OpenGLGraphicsVertexes();
+#endif
+}
+
ImageVertexes::~ImageVertexes()
{
delete_all(sdl);