Ignore:
Timestamp:
07/13/05 00:47:40 (19 years ago)
Author:
mattausch
Message:

fixed visibilityQueries

File:
1 edited

Legend:

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

    r166 r171  
    928928                HRESULT hr; 
    929929                LPDIRECT3DSURFACE9 pSurf=NULL, pTempSurf=NULL; 
     930                //IDirect3DSurface9 *pTempSurf=NULL; 
    930931                D3DSURFACE_DESC desc; 
    931932                D3DDISPLAYMODE dm; 
     
    953954                } 
    954955 
    955                 //if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
    956                 if (FAILED(hr = mpD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pTempSurf))) 
     956                if (FAILED(hr = mpD3DDevice->GetFrontBufferData(0, pTempSurf))) 
     957                //if (FAILED(hr = mpD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pTempSurf))) 
    957958                { 
    958959                        SAFE_RELEASE(pTempSurf); 
     
    10581059                } 
    10591060 
    1060                 pTempSurf->UnlockRect(); 
     1061//pTempSurf->UnlockRect(); 
    10611062                SAFE_RELEASE(pTempSurf); 
    10621063                SAFE_RELEASE(pSurf); 
Note: See TracChangeset for help on using the changeset viewer.