blitter: Put "#version" in the first line in shader.

Some GPU drivers (like mali from arm) doesn't like anything other than
"#version" in the first line.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Lepton Wu 5 years ago
parent b97d148d92
commit e8d497f4a1
  1. 6
      src/vrend_blitter.h

@ -27,17 +27,17 @@
/* shaders for blitting */
#define HEADER_GL \
"// Blitter\n" \
"#version 130\n" \
"// Blitter\n" \
#define HEADER_GLES \
"// Blitter\n" \
"#version 310 es\n" \
"// Blitter\n" \
"precision mediump float;\n" \
#define HEADER_GLES_MS_ARRAY \
"// Blitter\n" \
"#version 310 es\n" \
"// Blitter\n" \
"#extension GL_OES_texture_storage_multisample_2d_array: require\n" \
"precision mediump float;\n" \

Loading…
Cancel
Save