[nk] fix nuklear in linux and don't request a core context on windows

This commit is contained in:
radius 2016-06-07 19:40:11 -05:00
parent afe68b2a62
commit 991ea3c008
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *nuklear_fragment_shader = GLSL_330(
static const char *nuklear_fragment_shader = GLSL_300(
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(
static const char *nuklear_vertex_shader = GLSL_300(
uniform mat4 ProjMtx;
in vec2 Position;
in vec2 TexCoord;

View File

@ -6,6 +6,7 @@
#define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src
#else
#define GLSL(src) "" #src
#define GLSL_300(src) "#version 300 es\n" #src
#define GLSL_330(src) "#version 330 core\n" #src
#endif