forked from organicmaps/organicmaps
changes according to code review.
This commit is contained in:
parent
e629d05531
commit
368df26b94
1 changed files with 6 additions and 6 deletions
|
@ -91,12 +91,6 @@ namespace yg
|
|||
|
||||
void Renderer::DiscardFramebuffer::perform()
|
||||
{
|
||||
static bool firstReport = true;
|
||||
if (firstReport && !glDiscardFramebufferFn)
|
||||
LOG(LINFO, ("GL_EXT_discard_framebuffer is unsupported"));
|
||||
|
||||
firstReport = false;
|
||||
|
||||
GLenum attachements[2];
|
||||
int numAttachements = 0;
|
||||
if (m_doDiscardColor)
|
||||
|
@ -108,6 +102,12 @@ namespace yg
|
|||
|
||||
void Renderer::discardFramebuffer(bool doDiscardColor, bool doDiscardDepth)
|
||||
{
|
||||
static bool firstReport = true;
|
||||
if (firstReport && !glDiscardFramebufferFn)
|
||||
LOG(LINFO, ("GL_EXT_discard_framebuffer is unsupported"));
|
||||
|
||||
firstReport = false;
|
||||
|
||||
if (glDiscardFramebufferFn)
|
||||
processCommand(make_shared_ptr(new DiscardFramebuffer(doDiscardColor, doDiscardDepth)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue