Review fixes

This commit is contained in:
r.kuznetsov 2016-01-11 14:04:47 +03:00
parent 5dbc38e53d
commit a6ef1dd860
2 changed files with 1 additions and 12 deletions

View file

@ -41,13 +41,6 @@ void Framebuffer::SetDefaultContext(dp::OGLContext * context)
m_defaultContext = context;
}
int32_t Framebuffer::GetMaxSize()
{
if (m_maxTextureSize == 0)
m_maxTextureSize = GLFunctions::glGetInteger(gl_const::GLMaxTextureSize);
return m_maxTextureSize;
}
void Framebuffer::SetSize(uint32_t width, uint32_t height)
{
ASSERT(m_defaultContext, ());
@ -89,7 +82,7 @@ void Framebuffer::SetSize(uint32_t width, uint32_t height)
{
m_isSupported = false;
Destroy();
LOG(LWARNING, ("Framebuffer is unsupported. Framebuffer status =", strings::to_string(status)));
LOG(LWARNING, ("Framebuffer is unsupported. Framebuffer status =", status));
}
m_defaultContext->setDefaultFramebuffer();

View file

@ -19,8 +19,6 @@ public:
void SetDefaultContext(dp::OGLContext * context);
void SetSize(uint32_t width, uint32_t height);
int32_t GetMaxSize();
void Enable();
void Disable();
@ -39,8 +37,6 @@ private:
dp::OGLContext * m_defaultContext = 0;
int32_t m_maxTextureSize = 0;
bool m_isSupported = true;
};