no shaders on apple
This commit is contained in:
parent
4e24067ad2
commit
7f7541a039
2 changed files with 8 additions and 2 deletions
|
@ -3,9 +3,16 @@
|
|||
#ifdef USE_OPENGL
|
||||
#define MAX_SHADERS 5
|
||||
extern unsigned ShaderIndex;
|
||||
#ifndef __APPLE__
|
||||
extern void LoadShaders();
|
||||
extern bool LoadShaderExtensions();
|
||||
extern void SetupFramebuffer();
|
||||
extern void RenderFramebufferToScreen();
|
||||
#else
|
||||
#define LoadShaders()
|
||||
#define LoadShaderExtensions() false
|
||||
#define SetupFramebuffer()
|
||||
#define RenderFramebufferToScreen()
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "stratagus.h"
|
||||
#include "video.h"
|
||||
#ifdef USE_OPENGL
|
||||
#if defined(USE_OPENGL) && !defined(__APPLE__)
|
||||
const char* vertex_shader = "#version 130\n\
|
||||
\n\
|
||||
uniform sampler2D u_texture;\n\
|
||||
|
@ -319,7 +319,6 @@ const char* fragment_shaders[MAX_SHADERS] = {
|
|||
}"
|
||||
};
|
||||
|
||||
|
||||
PFNGLCREATESHADERPROC glCreateShader;
|
||||
PFNGLSHADERSOURCEPROC glShaderSource;
|
||||
PFNGLCOMPILESHADERPROC glCompileShader;
|
||||
|
|
Loading…
Reference in a new issue