mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Fix ColorMaterial on GLES.
This commit is contained in:
parent
d019bb0094
commit
8976ed252c
@ -37,7 +37,10 @@ const char **ColorMaterial::get_vertex_shader_source() {
|
|||||||
|
|
||||||
const char **ColorMaterial::get_fragment_shader_source() {
|
const char **ColorMaterial::get_fragment_shader_source() {
|
||||||
static const char *fragment_shader_source[] = {
|
static const char *fragment_shader_source[] = {
|
||||||
//"precision mediump float;"
|
#ifndef __APPLE__
|
||||||
|
"precision mediump float;\n"
|
||||||
|
"\n"
|
||||||
|
#endif
|
||||||
"varying vec4 v_color;\n"
|
"varying vec4 v_color;\n"
|
||||||
"\n"
|
"\n"
|
||||||
"void main() { gl_FragColor = v_color; }\n"
|
"void main() { gl_FragColor = v_color; }\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user