Advertisement
Guest User

Untitled

a guest
May 29th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // Get the max fps from OpenGL ES2
  2. QGLFormat format = QGLFormat::defaultFormat();
  3. format.setSampleBuffers(false); // disable AA.
  4. QGLWidget *glWidget = new QGLWidget(format);
  5. //### potentially faster, but causes junk to appear if top-level is Item, not Rectangle, or is transparent
  6. glWidget->setAutoFillBackground(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement