projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5906a67
)
Ignore zero area viewports.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Fri, 9 Dec 2011 16:52:26 +0000
(16:52 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Fri, 9 Dec 2011 16:52:26 +0000
(16:52 +0000)
glretrace_main.cpp
patch
|
blob
|
history
diff --git
a/glretrace_main.cpp
b/glretrace_main.cpp
index
7c836ba
..
89021f1
100644
(file)
--- 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);