mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
[nk] fix nuklear in linux and don't request a core context on windows
This commit is contained in:
parent
afe68b2a62
commit
991ea3c008
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user