1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-23 19:21:03 +00:00

(D3D) N/A

This commit is contained in:
twinaphex 2016-01-08 09:00:56 +01:00
parent 25481f9bfd
commit b24ca80c92
2 changed files with 5 additions and 4 deletions

@ -53,8 +53,8 @@ static d3d_video_t *d3d_get_ptr(void)
static void *menu_display_d3d_get_default_mvp(void)
{
#ifndef _XBOX
static D3DXMATRIX mvp;
D3DXMATRIX ortho;
static math_matrix_4x4 default_mvp;
D3DXMATRIX ortho, mvp;
#endif
d3d_video_t *d3d = d3d_get_ptr();
@ -65,8 +65,9 @@ static void *menu_display_d3d_get_default_mvp(void)
#else
D3DXMatrixOrthoOffCenterLH(&ortho, 0, d3d->final_viewport.Width, 0, d3d->final_viewport.Height, 0, 1);
D3DXMatrixTranspose(&mvp, &ortho);
memcpy(default_mvp.data, (FLOAT*)mvp, sizeof(default_mvp.data));
return (FLOAT*)mvp;
return &default_mvp;
#endif
}

@ -64,7 +64,7 @@ typedef struct menu_display
static menu_display_ctx_driver_t *menu_display_ctx_drivers[] = {
#ifdef HAVE_DIRECT3D
#ifdef HAVE_D3D
&menu_display_ctx_d3d,
#endif
#ifdef HAVE_OPENGL