Do not touch GL error state in postIterate()
authorPyry Haulos <phaulos@google.com>
Thu, 8 Jan 2015 21:16:54 +0000 (13:16 -0800)
committerPyry Haulos <phaulos@google.com>
Thu, 8 Jan 2015 21:16:54 +0000 (13:16 -0800)
EGL implementation of RenderContext::postIterate() calls glFlush() when
rendering into a pixmap or pbuffer. This change removes erroneus
glGetError() call, as test case may want to carry error state over
iterate() calls.

Bug: 18915339
Change-Id: Ic8f4a1df46f74e8375e4f346daa3d2288f9ee39a

framework/egl/egluGLContextFactory.cpp

index 980e27e..9f3a0af 100644 (file)
@@ -605,11 +605,7 @@ void RenderContext::postIterate (void)
                }
        }
        else
-       {
-               // \todo [2014-05-02 mika] Should we call flush or finish? Old platform uses finish() but flush() is closer to the behaviour of eglSwapBuffers()
                m_glFunctions.flush();
-               GLU_EXPECT_NO_ERROR(m_glFunctions.getError(), "glFlush()");
-       }
 }
 
 } // anonymous