update Xcode project
This commit is contained in:
@@ -562,7 +562,7 @@ bool App::update_ui_observer(Node *n)
|
||||
n->handle_on_screen(false, true);
|
||||
n->m_on_screen = true;
|
||||
}
|
||||
glm::ivec4 c = glm::vec4(box.x /*- 1*/, (height / zoom - box.y - box.w /*- 1*/), box.z /*+ 2*/, box.w /*+ 2*/) * zoom;
|
||||
glm::ivec4 c = glm::vec4(box.x - 1, (height / zoom - box.y - box.w - 1), box.z + 2, box.w + 2) * zoom;
|
||||
glScissor(floorf(c.x + off_x), floorf(c.y + off_y), ceilf(c.z), ceilf(c.w));
|
||||
n->draw();
|
||||
return true;
|
||||
|
||||
@@ -366,12 +366,16 @@ LayerFrame& LayerFrame::operator=(LayerFrame&& other)
|
||||
|
||||
bool LayerFrame::create(int width, int height, int duration /*= 1*/)
|
||||
{
|
||||
bool success = true;
|
||||
App::I->render_task([&]
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
if (!m_rtt[i].create(width, height))
|
||||
return false;
|
||||
{
|
||||
success = false;
|
||||
return;
|
||||
}
|
||||
m_rtt[i].bindFramebuffer();
|
||||
m_rtt[i].clear();
|
||||
m_rtt[i].unbindFramebuffer();
|
||||
@@ -382,7 +386,7 @@ bool LayerFrame::create(int width, int height, int duration /*= 1*/)
|
||||
m_duration = duration;
|
||||
w = width;
|
||||
h = height;
|
||||
return true;
|
||||
return success;
|
||||
}
|
||||
|
||||
bool LayerFrame::resize(int width, int height)
|
||||
|
||||
Reference in New Issue
Block a user