mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 23:42:14 +00:00
(D3D) Put ifdefs around shader code
This commit is contained in:
parent
fe8629f887
commit
6df5e85ff4
@ -239,6 +239,8 @@ static void renderchain_set_vertices(void *data, unsigned pass, unsigned width,
|
||||
RD3DVertexBuffer_Unlock(d3d->vertex_buf);
|
||||
}
|
||||
|
||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
|
||||
#ifdef _XBOX
|
||||
if (d3d->shader)
|
||||
{
|
||||
renderchain_set_mvp(d3d, d3d->screen_width, d3d->screen_height, d3d->dev_rotation);
|
||||
@ -249,6 +251,8 @@ static void renderchain_set_vertices(void *data, unsigned pass, unsigned width,
|
||||
d3d->screen_height, g_extern.frame_count,
|
||||
NULL, NULL, NULL, 0);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
static void renderchain_set_mvp(void *data, unsigned vp_width, unsigned vp_height, unsigned rotation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user