summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphicsvertexes.cpp9
-rw-r--r--src/graphicsvertexes.h9
2 files changed, 10 insertions, 8 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);
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 452cebc29..a4ce65013 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -123,14 +123,7 @@ typedef std::vector<DoubleRect*> DoubleRects;
class ImageVertexes
{
public:
- ImageVertexes() :
- image(nullptr)
- {
- sdl.reserve(30);
-#ifdef USE_OPENGL
- ogl = new OpenGLGraphicsVertexes();
-#endif
- }
+ ImageVertexes();
~ImageVertexes();