Use CG macro instead

This commit is contained in:
twinaphex 2016-06-08 05:26:33 +02:00
parent 710a3fe249
commit 4e91f6fcd0
4 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *stock_cg_gl_program = GLSL(
static const char *stock_cg_gl_program = CG(
struct input
{
float2 tex_coord;

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *nuklear_shader = GLSL(
static const char *nuklear_shader = CG(
struct input
{
float time;

View File

@ -1,6 +1,6 @@
#include "shaders_common.h"
static const char *stock_xmb_simple = GLSL(
static const char *stock_xmb_simple = CG(
struct input
{
float time;

View File

@ -2,9 +2,11 @@
#define _SHADERS_COMMON
#if defined(HAVE_OPENGLES)
#define CG(src) "" #src
#define GLSL(src) "precision mediump float;\n" #src
#define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src
#else
#define CG(src) "" #src
#define GLSL(src) "" #src
#define GLSL_300(src) "#version 300 es\n" #src
#define GLSL_330(src) "#version 330 core\n" #src