add #version to the framebuffer drawing shader for compat

This commit is contained in:
Henrik Rydgard committed 2012-12-21 11:24:38 +01:00
1 parent 4bf2e52623
commit 9db065a979
1 file changed
+5 -2
+5 -2
View File
@@ -37,14 +37,17 @@ const char tex_fs[] =
"}\n";
const char basic_vs[] =
#ifndef USING_GLES2
"#version 120\n"
#endif
"attribute vec4 a_position;\n"
"attribute vec2 a_texcoord0;\n"
"uniform mat4 u_viewproj;\n"
"varying vec4 v_color;\n"
"varying vec2 v_texcoord0;\n"
"void main() {\n"
" v_texcoord0 = a_texcoord0;\n"
" gl_Position = u_viewproj * a_position;\n"
" v_texcoord0 = a_texcoord0;\n"
" gl_Position = u_viewproj * a_position;\n"
"}\n";
FramebufferManager::FramebufferManager() {