Ignore:
Timestamp:
07/11/05 17:47:47 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/ogre_changes/RenderSystems/Direct3D9/src/OgreD3D9RenderWindow.cpp

    r153 r166  
    365365                md3dpp.BackBufferWidth                  = mWidth; 
    366366                md3dpp.BackBufferHeight                 = mHeight; 
    367  
     367#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     368        md3dpp.Flags |= D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; 
     369#endif 
    368370                if (mVSync) 
    369371                        md3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; 
     
    951953                } 
    952954 
    953                 if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
     955                //if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
     956                if (FAILED(hr = mpD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pTempSurf))) 
    954957                { 
    955958                        SAFE_RELEASE(pTempSurf); 
    956                         OGRE_EXCEPT(hr, "Can't get front buffer!", "D3D9RenderWindow::writeContentsToFile"); 
     959                        OGRE_EXCEPT(hr, "Can't get back buffer!", "D3D9RenderWindow::getBufferContents"); 
    957960                } 
    958961 
     
    10551058                } 
    10561059 
     1060                pTempSurf->UnlockRect(); 
    10571061                SAFE_RELEASE(pTempSurf); 
    10581062                SAFE_RELEASE(pSurf); 
Note: See TracChangeset for help on using the changeset viewer.