- Timestamp:
- Oct 9, 2009 12:51:05 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53346
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r23588 r23646 586 586 void deleteDisplay(); 587 587 588 int createDisplay(VBoxVHWASurfaceBase *pPrimary, GLuint *pDisplay );589 void doDisplay(VBoxVHWASurfaceBase *pPrimary, VBoxVHWAGlProgramVHWA * pProgram, bool bBindDst);588 int createDisplay(VBoxVHWASurfaceBase *pPrimary, GLuint *pDisplay, class VBoxVHWAGlProgram ** ppProgram); 589 void doDisplay(VBoxVHWASurfaceBase *pPrimary, bool bProgram, bool bBindDst); 590 590 bool synchTexMem(const QRect * aRect); 591 591 … … 605 605 606 606 GLuint mVisibleDisplay; 607 class VBoxVHWAGlProgram * mpProgram; 607 608 608 609 bool mVisibleDisplayInitialized; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r23630 r23646 1828 1828 bool bVGA) : 1829 1829 mRect(0,0,aSize.width(),aSize.height()), 1830 mpProgram(NULL), 1830 1831 mVisibleDisplayInitialized(false), 1831 1832 mAddress(NULL), … … 2824 2825 glDeleteLists(mVisibleDisplay, 1); 2825 2826 } 2827 if(mpProgram) 2828 { 2829 mpProgram = NULL; 2830 } 2826 2831 mVisibleDisplayInitialized = false; 2827 2832 } 2828 2833 } 2829 2834 2830 void VBoxVHWASurfaceBase::doDisplay(VBoxVHWASurfaceBase *pPrimary, VBoxVHWAGlProgramVHWA * pProgram, bool bBindDst)2835 void VBoxVHWASurfaceBase::doDisplay(VBoxVHWASurfaceBase *pPrimary, bool bProgram, bool bBindDst) 2831 2836 { 2832 2837 bool bInvokeMultiTex2 = false; 2833 2838 2834 if( pProgram)2835 { 2836 pProgram->start();2839 if(bProgram) 2840 { 2841 // pProgram->start(); 2837 2842 2838 2843 // if(pSrcCKey != NULL) … … 2902 2907 } 2903 2908 2904 if(pProgram)2905 {2906 pProgram->stop();2907 }2908 } 2909 2910 int VBoxVHWASurfaceBase::createDisplay(VBoxVHWASurfaceBase *pPrimary, GLuint *pDisplay )2909 // if(pProgram) 2910 // { 2911 // pProgram->stop(); 2912 // } 2913 } 2914 2915 int VBoxVHWASurfaceBase::createDisplay(VBoxVHWASurfaceBase *pPrimary, GLuint *pDisplay, class VBoxVHWAGlProgram ** ppProgram) 2911 2916 { 2912 2917 if(mVisibleTargRect.isEmpty()) … … 2968 2973 glNewList(display, GL_COMPILE); 2969 2974 2970 doDisplay(pPrimary, pProgram , pDstCKey != NULL);2975 doDisplay(pPrimary, pProgram != 0, pDstCKey != NULL); 2971 2976 2972 2977 glEndList(); 2973 2978 VBOXQGL_ASSERTNOERR(); 2974 2979 *pDisplay = display; 2980 *ppProgram = pProgram; 2975 2981 return VINF_SUCCESS; 2976 2982 } … … 2989 2995 deleteDisplay(); 2990 2996 2991 int rc = createDisplay(pPrimary, &mVisibleDisplay );2997 int rc = createDisplay(pPrimary, &mVisibleDisplay, &mpProgram); 2992 2998 if(RT_SUCCESS(rc)) 2993 2999 { 2994 3000 mVisibleDisplayInitialized = true; 3001 } 3002 else 3003 { 3004 mVisibleDisplayInitialized = false; 2995 3005 } 2996 3006 } … … 3058 3068 } 3059 3069 3060 doDisplay(pPrimary, pProgram, pDstCKey != NULL); 3070 if(pProgram) 3071 pProgram->start(); 3072 doDisplay(pPrimary, pProgram != 0, pDstCKey != NULL); 3073 if(pProgram) 3074 pProgram->stop(); 3075 3061 3076 3062 3077 // doDisplay(pPrimary, NULL, false); … … 3064 3079 else 3065 3080 { 3081 if(mpProgram) 3082 mpProgram->start(); 3066 3083 VBOXQGL_CHECKERR( 3067 3084 glCallList(mVisibleDisplay); 3068 3085 ); 3086 if(mpProgram) 3087 mpProgram->stop(); 3088 3069 3089 } 3070 3090
Note:
See TracChangeset
for help on using the changeset viewer.