summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index ac5168b4f..5b39dfb08 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -122,10 +122,12 @@ class ImageVertexes
{
public:
ImageVertexes() :
- image(0),
- ogl(new OpenGLGraphicsVertexes())
+ image(0)
{
sdl.reserve(30);
+#ifdef USE_OPENGL
+ ogl = new OpenGLGraphicsVertexes();
+#endif
}
~ImageVertexes();