From: José Fonseca Date: Fri, 9 Dec 2011 16:52:26 +0000 (+0000) Subject: Ignore zero area viewports. X-Git-Tag: 2.0_alpha^2~401 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ec6918847a22e3daf762c46995ba409bf48fb6a;p=tools%2Fapitrace.git Ignore zero area viewports. --- diff --git a/glretrace_main.cpp b/glretrace_main.cpp index 7c836ba..89021f1 100644 --- a/glretrace_main.cpp +++ b/glretrace_main.cpp @@ -118,6 +118,11 @@ updateDrawable(int width, int height) { return; } + // Ignore zero area viewports + if (width == 0 || height == 0) { + return; + } + // Check for bound framebuffer last, as this may have a performance impact. GLint draw_framebuffer = 0; glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &draw_framebuffer);