do not randomly scale renderbuffers
This commit is contained in:
parent
9113c901ec
commit
b025d2a5b1
2 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,7 @@ class FrameBuffer
|
|||
{
|
||||
Declaration()
|
||||
: m_renderbuffers_count(0)
|
||||
, m_screen_size(false)
|
||||
{ }
|
||||
|
||||
static const int MAX_RENDERBUFFERS = 16;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue