mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
Use CG macro instead
This commit is contained in:
parent
710a3fe249
commit
4e91f6fcd0
@ -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;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "shaders_common.h"
|
||||
|
||||
static const char *nuklear_shader = GLSL(
|
||||
static const char *nuklear_shader = CG(
|
||||
struct input
|
||||
{
|
||||
float time;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user