|
@@ -541,6 +541,7 @@ namespace BansheeEngine
|
|
|
if(mCaretTexture == nullptr)
|
|
if(mCaretTexture == nullptr)
|
|
|
{
|
|
{
|
|
|
HTexture newTex = Texture::create(TEX_TYPE_2D, 1, 1, 0, PF_R8G8B8A8);
|
|
HTexture newTex = Texture::create(TEX_TYPE_2D, 1, 1, 0, PF_R8G8B8A8);
|
|
|
|
|
+ newTex->synchonize(); // TODO - Required due to a bug in allocateSubresourceBuffer
|
|
|
mCaretTexture = cm_shared_ptr<SpriteTexture>(newTex);
|
|
mCaretTexture = cm_shared_ptr<SpriteTexture>(newTex);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -558,6 +559,7 @@ namespace BansheeEngine
|
|
|
if(mTextSelectionTexture == nullptr)
|
|
if(mTextSelectionTexture == nullptr)
|
|
|
{
|
|
{
|
|
|
HTexture newTex = Texture::create(TEX_TYPE_2D, 1, 1, 0, PF_R8G8B8A8);
|
|
HTexture newTex = Texture::create(TEX_TYPE_2D, 1, 1, 0, PF_R8G8B8A8);
|
|
|
|
|
+ newTex->synchonize(); // TODO - Required due to a bug in allocateSubresourceBuffer
|
|
|
mTextSelectionTexture = cm_shared_ptr<SpriteTexture>(newTex);
|
|
mTextSelectionTexture = cm_shared_ptr<SpriteTexture>(newTex);
|
|
|
}
|
|
}
|
|
|
|
|
|