do not randomly scale renderbuffers

This commit is contained in:
Mikulas Florek 2016-01-26 01:59:51 +01:00
parent 9113c901ec
commit b025d2a5b1
2 changed files with 5 additions and 0 deletions

View file

@ -31,6 +31,7 @@ class FrameBuffer
{
Declaration()
: m_renderbuffers_count(0)
, m_screen_size(false)
{ }
static const int MAX_RENDERBUFFERS = 16;

View file

@ -179,6 +179,10 @@ struct PipelineImpl : public Pipeline
{
decl.m_screen_size = lua_toboolean(L, -1) != 0;
}
else
{
decl.m_screen_size = false;
}
lua_pop(L, 1);
if (lua_getfield(L, -1, "height") == LUA_TNUMBER)
{