Changeset 23630 in vbox
- Timestamp:
- Oct 8, 2009 7:32:50 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53315
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r23588 r23630 3073 3073 } 3074 3074 3075 class VBoxGLContext : public QGLContext 3076 { 3077 public: 3078 VBoxGLContext (const QGLFormat & format ) : 3079 QGLContext(format), 3080 mAllowDoneCurrent(true) 3081 { 3082 } 3083 3084 void doneCurrent() 3085 { 3086 if(!mAllowDoneCurrent) 3087 return; 3088 QGLContext::doneCurrent(); 3089 } 3090 3091 bool isDoneCurrentAllowed() { return mAllowDoneCurrent; } 3092 void allowDoneCurrent(bool bAllow) { mAllowDoneCurrent = bAllow; } 3093 private: 3094 bool mAllowDoneCurrent; 3095 }; 3075 3096 3076 3097 VBoxGLWidget::VBoxGLWidget (VBoxConsoleView *aView, QWidget *aParent) 3077 : QGLWidget ( VBoxGLWidget::vboxGLFormat(), aParent),3098 : QGLWidget (new VBoxGLContext(VBoxGLWidget::vboxGLFormat()), aParent), 3078 3099 mSurfHandleTable(128), /* 128 should be enough */ 3079 3100 mpfnOp(NULL), … … 5282 5303 { 5283 5304 mpOverlayWidget = new VBoxGLWidget (aView, aView->viewport()); 5305 5306 VBoxGLContext *pc = (VBoxGLContext*)mpOverlayWidget->context(); 5307 pc->allowDoneCurrent(false); 5308 5284 5309 mOverlayWidgetVisible = true; /* to ensure it is set hidden with vboxShowOverlay */ 5285 5310 vboxShowOverlay(false);
Note:
See TracChangeset
for help on using the changeset viewer.