forked from organicmaps/organicmaps
return value checking from EAGLContext:presentRenderbuffer
This commit is contained in:
parent
9b48dd5051
commit
6f3fdb82df
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ namespace iphone
|
|||
void RenderBuffer::present()
|
||||
{
|
||||
makeCurrent();
|
||||
[m_renderContext->getEAGLContext() presentRenderbuffer:GL_RENDERBUFFER_OES];
|
||||
int tryCount = 0;
|
||||
while (!([m_renderContext->getEAGLContext() presentRenderbuffer:GL_RENDERBUFFER_OES])
|
||||
&& (tryCount++ < 100));
|
||||
|
||||
if (tryCount != 0)
|
||||
NSLog(@"renderBuffer was presented from %d try");
|
||||
}
|
||||
|
||||
unsigned RenderBuffer::width() const
|
||||
|
|
Loading…
Add table
Reference in a new issue