Changeset 1354 for OGRE


Ignore:
Timestamp:
09/13/06 11:23:03 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OGRE/trunk/ogre_changes/Ogre1.2/RenderSystems/Direct3D9/src/OgreD3D9RenderSystem.cpp

    r1053 r1354  
    19251925                HRESULT hr; 
    19261926                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) 
    19281929                { 
    19291930                        if (FAILED(hr = __SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE))) 
     
    19401941                                        OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 
    19411942                                 
    1942                                 if (FAILED(hr = __SetRenderState(D3DRS_BLENDOPALPHA, D3D9Mappings::get(blendOp)))) 
     1943                                if (FAILED(hr = __SetRenderState(D3DRS_BLENDOPALPHA, D3D9Mappings::get(blendOpAlpha)))) 
    19431944                                        OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 
    19441945 
    1945                                 if( FAILED( hr = __SetRenderState( D3DRS_SRCBLENDALPHA, D3D9Mappings::get(sourceFactor) ) ) ) 
     1946                                if( FAILED( hr = __SetRenderState( D3DRS_SRCBLENDALPHA, D3D9Mappings::get(sourceFactorAlpha) ) ) ) 
    19461947                                        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) ) ) ) 
    19481949                                        OGRE_EXCEPT( hr, "Failed to set destination blend", "D3D9RenderSystem::_setSceneBlending" ); 
    19491950                 
     
    19551956                        } 
    19561957                         
    1957                         if (FAILED(hr = __SetRenderState(D3DRS_BLENDOP, D3D9Mappings::get(blendOpAlpha)))) 
     1958                        if (FAILED(hr = __SetRenderState(D3DRS_BLENDOP, D3D9Mappings::get(blendOp)))) 
    19581959                                        OGRE_EXCEPT( hr, "Failed to set alpha blending option", "D3D9RenderSystem::_setSceneBlending" ); 
    19591960                        if( FAILED( hr = __SetRenderState( D3DRS_SRCBLEND, D3D9Mappings::get(sourceFactor) ) ) ) 
Note: See TracChangeset for help on using the changeset viewer.