Fix ColorMaterial on GLES.

This commit is contained in:
Relintai 2024-01-18 22:26:14 +01:00
parent d019bb0094
commit 8976ed252c

View File

@ -37,7 +37,10 @@ const char **ColorMaterial::get_vertex_shader_source() {
const char **ColorMaterial::get_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"
"\n"
"void main() { gl_FragColor = v_color; }\n"