diff --git a/driver.h b/driver.h index 08a95d5f70..1533100128 100644 --- a/driver.h +++ b/driver.h @@ -145,18 +145,6 @@ struct platform_bind char desc[64]; }; -#if defined(_XBOX360) -#define DEFAULT_SHADER_TYPE RARCH_SHADER_HLSL -#elif defined(__PSL1GHT__) -#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL -#elif defined(__CELLOS_LV2__) -#define DEFAULT_SHADER_TYPE RARCH_SHADER_CG -#elif defined(HAVE_OPENGLES2) -#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL -#else -#define DEFAULT_SHADER_TYPE RARCH_SHADER_NONE -#endif - typedef struct video_info { unsigned width; diff --git a/gfx/shader_common.h b/gfx/shader_common.h index 3e3f9b9144..a67fa4236e 100644 --- a/gfx/shader_common.h +++ b/gfx/shader_common.h @@ -29,6 +29,18 @@ #include "gfx_context.h" #include "math/matrix.h" +#if defined(_XBOX360) +#define DEFAULT_SHADER_TYPE RARCH_SHADER_HLSL +#elif defined(__PSL1GHT__) +#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL +#elif defined(__CELLOS_LV2__) +#define DEFAULT_SHADER_TYPE RARCH_SHADER_CG +#elif defined(HAVE_OPENGLES2) +#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL +#else +#define DEFAULT_SHADER_TYPE RARCH_SHADER_NONE +#endif + #if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) #ifndef HAVE_SHADER_MANAGER #define HAVE_SHADER_MANAGER