Changeset 1354 for OGRE/trunk/ogre_changes
- Timestamp:
- 09/13/06 11:23:03 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp
r1053 r1354 1925 1925 HRESULT hr; 1926 1926 if( sourceFactor == SBF_ONE && destFactor == SBF_ZERO && 1927 sourceFactorAlpha == SBF_ONE && destFactorAlpha == SBF_ZERO) 1927 sourceFactorAlpha == SBF_ONE && destFactorAlpha == SBF_ZERO && 1928 blendOp == SBOP_ADD && blendOpAlpha == SBOP_ADD) 1928 1929 { 1929 1930 if (FAILED(hr = __SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE))) … … 1940 1941 OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 1941 1942 1942 if (FAILED(hr = __SetRenderState(D3DRS_BLENDOPALPHA, D3D9Mappings::get(blendOp ))))1943 if (FAILED(hr = __SetRenderState(D3DRS_BLENDOPALPHA, D3D9Mappings::get(blendOpAlpha)))) 1943 1944 OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 1944 1945 1945 if( FAILED( hr = __SetRenderState( D3DRS_SRCBLENDALPHA, D3D9Mappings::get(sourceFactor ) ) ) )1946 if( FAILED( hr = __SetRenderState( D3DRS_SRCBLENDALPHA, D3D9Mappings::get(sourceFactorAlpha) ) ) ) 1946 1947 OGRE_EXCEPT( hr, "Failed to set source blend", "D3D9RenderSystem::_setSceneBlending" ); 1947 if( FAILED( hr = __SetRenderState( D3DRS_DESTBLENDALPHA, D3D9Mappings::get(destFactor ) ) ) )1948 if( FAILED( hr = __SetRenderState( D3DRS_DESTBLENDALPHA, D3D9Mappings::get(destFactorAlpha) ) ) ) 1948 1949 OGRE_EXCEPT( hr, "Failed to set destination blend", "D3D9RenderSystem::_setSceneBlending" ); 1949 1950 … … 1955 1956 } 1956 1957 1957 if (FAILED(hr = __SetRenderState(D3DRS_BLENDOP, D3D9Mappings::get(blendOp Alpha))))1958 if (FAILED(hr = __SetRenderState(D3DRS_BLENDOP, D3D9Mappings::get(blendOp)))) 1958 1959 OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 1959 1960 if( FAILED( hr = __SetRenderState( D3DRS_SRCBLEND, D3D9Mappings::get(sourceFactor) ) ) )
Note: See TracChangeset
for help on using the changeset viewer.