summaryrefslogtreecommitdiffstats
path: root/Project/OpenGLText.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/OpenGLText.cpp')
-rw-r--r--Project/OpenGLText.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Project/OpenGLText.cpp b/Project/OpenGLText.cpp
index f877afa..a72af7f 100644
--- a/Project/OpenGLText.cpp
+++ b/Project/OpenGLText.cpp
@@ -188,9 +188,13 @@ OpenGLText* OpenGLText::GetCopy()
{
OpenGLText* copy = new OpenGLText();
*copy = *this;
+ copy->m_textCoord = nullptr;
+ copy->Init();
+
copy->m_textureID = nullptr;
copy->m_bitmapSize = wxSize(0, 0);
copy->m_bitmap = wxNullBitmap;
+
copy->SetText(copy->m_text);
return copy;
}