diff options
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 6 |
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(); |