Leave only GLSL_330 macro

This commit is contained in:
twinaphex 2016-05-28 20:58:49 +02:00
parent 2056d25e3e
commit da6a74b2dc
3 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *nuklear_fragment_shader = GLSL_330_ES(
static const char *nuklear_fragment_shader = GLSL_330(
precision mediump float;
uniform sampler2D Texture;
in vec2 Frag_UV;

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *nuklear_vertex_shader = GLSL_330_ES(
static const char *nuklear_vertex_shader = GLSL_330(
uniform mat4 ProjMtx;
in vec2 Position;
in vec2 TexCoord;

View File

@ -3,12 +3,10 @@
#if defined(HAVE_OPENGLES)
#define GLSL(src) "precision mediump float;\n" #src
#define GLSL_330_ES(src) "#version 330 es\nprecision mediump float;\n" #src
#define GLSL_330_CORE(src) "#version 330 es\nprecision mediump float;\n" #src
#define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src
#else
#define GLSL(src) "" #src
#define GLSL_330_ES(src) "#version 330 core\n" #src
#define GLSL_330_CORE(src) "#version 330 core\n" #src
#define GLSL_330(src) "#version 330 core\n" #src
#endif
#endif
#endif