Ignore:
Timestamp:
Apr 25, 2012, 7:47:42 PM (8 years ago)
Author:
sam
Message:

gpu: activate alpha blending on the Direct3D backend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r1236 r1297  
    132132
    133133    g_d3ddevice = VideoData::d3d_dev;
     134
     135    g_d3ddevice->SetRenderState(D3DRS_ALPHABLENDENABLE, 1);
     136    g_d3ddevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
     137    g_d3ddevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
    134138#else
    135139#   if defined USE_GLEW && !defined __APPLE__
Note: See TracChangeset for help on using the changeset viewer.