mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(XDK1) Cleanup xdk_set_shader
This commit is contained in:
parent
bd347fc5c7
commit
785273c209
@ -300,6 +300,25 @@ static bool xdk_d3d_set_shader(void *data, enum rarch_shader_type type, const ch
|
||||
{
|
||||
/* TODO - stub */
|
||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)data;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case RARCH_SHADER_CG:
|
||||
#ifdef HAVE_HLSL
|
||||
d3d->shader = &hlsl_backend;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
d3d->shader = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!d3d->shader)
|
||||
{
|
||||
RARCH_ERR("[D3D]: Cannot find shader core for path: %s.\n", path);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user