RetroArch/gfx/drivers/gl_shaders/shaders_common.h
2016-05-28 20:58:49 +02:00

13 lines
305 B
C

#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#if defined(HAVE_OPENGLES)
#define GLSL(src) "precision mediump float;\n" #src
#define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src
#else
#define GLSL(src) "" #src
#define GLSL_330(src) "#version 330 core\n" #src
#endif
#endif