return;
}
- if (width <= glretrace::drawable->width &&
- height <= glretrace::drawable->height) {
+ if (drawable->visible &&
+ width <= drawable->width &&
+ height <= drawable->height) {
return;
}
return;
}
- glretrace::drawable->resize(width, height);
- if (!drawable->visible) {
- drawable->show();
- }
+ drawable->resize(width, height);
+ drawable->show();
+
glScissor(0, 0, width, height);
}
}
-void frame_complete(unsigned call_no) {
+void frame_complete(Trace::Call &call) {
++frame;
+ if (!drawable) {
+ return;
+ }
+
+ if (!drawable->visible) {
+ retrace::warning(call) << "could not infer drawable size (glViewport never called)\n";
+ }
+
if (snapshot_frequency == FREQUENCY_FRAME ||
snapshot_frequency == FREQUENCY_FRAMEBUFFER) {
- snapshot(call_no);
+ snapshot(call.no);
}
}
} else if (!strcmp(arg, "-b")) {
benchmark = true;
retrace::verbosity = -1;
+ glws::debug = false;
} else if (!strcmp(arg, "-c")) {
compare_prefix = argv[++i];
if (snapshot_frequency == FREQUENCY_NEVER) {