Allow camera render target to be null
This commit is contained in:
@ -53,8 +53,6 @@ void UIBorder::onStart() {
|
||||
UIComponent::onStart();
|
||||
|
||||
auto rebufferQuad = [&] {
|
||||
std::cout << "W" << this->getWidth() << std::endl;
|
||||
std::cout << "H" << this->getHeight() << std::endl;
|
||||
glm::vec2 tSize = glm::vec2(1, 1) / 3.0f;
|
||||
glm::vec2 bSize = (glm::vec2)borderSize;
|
||||
glm::vec2 iSize = glm::vec2(this->getWidth(), this->getHeight()) - ( bSize * 2.0f );
|
||||
|
@ -13,7 +13,7 @@ UILabel::UILabel(SceneItem *item) :
|
||||
text(""),
|
||||
fontSize(10.0f),
|
||||
font(&item->scene->game->renderManager.defaultFont),
|
||||
maxWidth(UI_LABEL_MAX_WIDTH_NONE)
|
||||
maxWidth(UI_LABEL_MAX_WIDTH_ALIGN)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user