mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
glgsg: fix shader version in macOS 3.2+ context
This commit is contained in:
parent
f0b21ee969
commit
f82a940878
@ -155,7 +155,11 @@ null_glBlendColor(GLclampf, GLclampf, GLclampf, GLclampf) {
|
||||
// drawing GUIs and such.
|
||||
static const string default_vshader =
|
||||
#ifndef OPENGLES
|
||||
#ifdef __APPLE__ // Apple's GL 3.2 contexts require at least GLSL 1.50.
|
||||
"#version 150\n"
|
||||
#else
|
||||
"#version 130\n"
|
||||
#endif
|
||||
"in vec4 p3d_Vertex;\n"
|
||||
"in vec4 p3d_Color;\n"
|
||||
"in vec2 p3d_MultiTexCoord0;\n"
|
||||
@ -179,7 +183,11 @@ static const string default_vshader =
|
||||
|
||||
static const string default_fshader =
|
||||
#ifndef OPENGLES
|
||||
#ifdef __APPLE__ // Apple's GL 3.2 contexts require at least GLSL 1.50.
|
||||
"#version 150\n"
|
||||
#else
|
||||
"#version 130\n"
|
||||
#endif
|
||||
"in vec2 texcoord;\n"
|
||||
"in vec4 color;\n"
|
||||
"out vec4 p3d_FragColor;\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user