OSDN Git Service

minor QGLWindowSurfacePrivate structure optimization
authorIvailo Monev <xakepa10@laimg.moc>
Mon, 25 Jul 2016 01:21:35 +0000 (01:21 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Mon, 25 Jul 2016 01:21:35 +0000 (01:21 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/opengl/qwindowsurface_gl.cpp

index eab0d0f..d89d1e1 100644 (file)
@@ -293,6 +293,7 @@ struct QGLWindowSurfacePrivate
     bool destructive_swap_buffers : 1;
     bool geometry_updated : 1;
     bool did_paint : 1;
+    bool swap_region_support : 1;
 
     QGLContext *ctx;
 
@@ -306,8 +307,6 @@ struct QGLWindowSurfacePrivate
     QList<QImage> buffers;
     QGLWindowSurfaceGLPaintDevice glDevice;
     QGLWindowSurface* q_ptr;
-
-    bool swap_region_support;
 };
 
 QGLFormat QGLWindowSurface::surfaceFormat;