src/opengl/qglpixelbuffer.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtOpenGL module of the Qt Toolkit.
     7 ** This file is part of the QtOpenGL module of the Qt Toolkit.
     8 **
     8 **
   125         req_shareWidget = shareWidget;
   125         req_shareWidget = shareWidget;
   126         invalid = false;
   126         invalid = false;
   127         qctx = new QGLContext(format);
   127         qctx = new QGLContext(format);
   128         qctx->d_func()->sharing = (shareWidget != 0);
   128         qctx->d_func()->sharing = (shareWidget != 0);
   129         if (shareWidget != 0 && shareWidget->d_func()->glcx) {
   129         if (shareWidget != 0 && shareWidget->d_func()->glcx) {
   130             qgl_share_reg()->addShare(qctx, shareWidget->d_func()->glcx);
   130             QGLContextGroup::addShare(qctx, shareWidget->d_func()->glcx);
   131             shareWidget->d_func()->glcx->d_func()->sharing = true;
   131             shareWidget->d_func()->glcx->d_func()->sharing = true;
   132         }
   132         }
   133 
   133 
   134         glDevice.setPBuffer(q);
   134         glDevice.setPBuffer(q);
   135         qctx->d_func()->paintDevice = q;
   135         qctx->d_func()->paintDevice = q;