(Xbox 1) Add D3D8 alpha blending

This commit is contained in:
twinaphex 2012-08-04 05:59:30 +02:00
parent 98385f8ccf
commit 529e5d7d18
2 changed files with 8 additions and 3 deletions

View File

@ -2423,9 +2423,7 @@ void menu_loop(void)
#endif
}
#ifdef __CELLOS_LV2__
rarch_render_cached_frame();
#endif
filebrowser_t * fb = &browser;

View File

@ -34,7 +34,14 @@
void gfx_ctx_set_blend(bool enable)
{
(void)enable;
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
if(enable)
{
d3d->d3d_render_device->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ONE);
d3d->d3d_render_device->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
}
d3d->d3d_render_device->SetRenderState(D3DRS_ALPHABLENDENABLE, enable);
}
void gfx_ctx_set_swap_interval(unsigned interval, bool inited)