Allow camera render target to be null

This commit is contained in:
2023-05-10 07:43:02 -07:00
parent fb53330105
commit d643d5f220
5 changed files with 17 additions and 9 deletions

View File

@ -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 );

View File

@ -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)
{
}