GLContextWGL::GLContextWGL( const SurfaceCaps& caps, GLContext* sharedContext, bool isOffscreen, HDC aDC, HGLRC aContext, HWND aWindow) : GLContext(caps, sharedContext, isOffscreen), mDC(aDC), mContext(aContext), mWnd(aWindow), mPBuffer(nullptr), mPixelFormat(0), mIsDoubleBuffered(false) { // See 899855 SetProfileVersion(ContextProfile::OpenGLCompatibility, 200); }
// From PBuffer GLContextWGL(const SurfaceCaps& caps, GLContext* sharedContext, bool isOffscreen, HANDLE aPbuffer, HDC aDC, HGLRC aContext, int aPixelFormat, LibType aLibUsed) : GLContext(caps, sharedContext, isOffscreen), mDC(aDC), mContext(aContext), mWnd(nullptr), mPBuffer(aPbuffer), mPixelFormat(aPixelFormat), mLibType(aLibUsed), mIsDoubleBuffered(false) { // See 899855 SetProfileVersion(ContextProfile::OpenGLCompatibility, 200); }
GLContextGLX(const SurfaceCaps& caps, GLContext* shareContext, bool isOffscreen, Display *aDisplay, GLXDrawable aDrawable, GLXContext aContext, bool aDeleteDrawable, bool aDoubleBuffered, gfxXlibSurface *aPixmap, LibType libType) : GLContext(caps, shareContext, isOffscreen),//aDeleteDrawable ? true : false, aShareContext, ), mContext(aContext), mDisplay(aDisplay), mDrawable(aDrawable), mDeleteDrawable(aDeleteDrawable), mDoubleBuffered(aDoubleBuffered), mLibType(libType), mGLX(&sGLXLibrary[libType]), mPixmap(aPixmap) { MOZ_ASSERT(mGLX); // See 899855 SetProfileVersion(ContextProfile::OpenGLCompatibility, 200); }