diff --git a/driver_gl.cpp b/driver_gl.cpp index f7d43a85145..1ecb7588c41 100644 --- a/driver_gl.cpp +++ b/driver_gl.cpp @@ -544,7 +544,7 @@ void DriverGL::drawEmergString(int x, int y, const char *text, const Color &fgCo } Driver::TextObjectHandle *DriverGL::createTextBitmap(uint8 *data, int width, int height, const Color &fgColor) { - TextObjectHandle *handle = new TextObjectHandle(); + TextObjectHandle *handle = new TextObjectHandle; handle->width = width; handle->height = height; handle->bitmapData = NULL; diff --git a/driver_tinygl.cpp b/driver_tinygl.cpp index 431ce7edf2f..b5f88dd5456 100644 --- a/driver_tinygl.cpp +++ b/driver_tinygl.cpp @@ -399,7 +399,7 @@ void DriverTinyGL::drawEmergString(int /*x*/, int /*y*/, const char * /*text*/, } Driver::TextObjectHandle *DriverTinyGL::createTextBitmap(uint8 *data, int width, int height, const Color &fgColor) { - TextObjectHandle *handle = new TextObjectHandle(); + TextObjectHandle *handle = new TextObjectHandle; handle->width = width; handle->height = height; handle->numTex = 0;