瀏覽代碼

Fix broken GLSL in sharing test

Thank you, Intel, for sticking to the spec.
Camilla Berglund 9 年之前
父節點
當前提交
1fc11c27e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/sharing.c

+ 1 - 1
tests/sharing.c

@@ -52,7 +52,7 @@ static const char* fragment_shader_text =
 "varying vec2 texcoord;\n"
 "varying vec2 texcoord;\n"
 "void main()\n"
 "void main()\n"
 "{\n"
 "{\n"
-"    gl_FragColor = vec4(color * tex2D(texture, texcoord).rgb, 1.0);\n"
+"    gl_FragColor = vec4(color * texture2D(texture, texcoord).rgb, 1.0);\n"
 "}\n";
 "}\n";
 
 
 static const vec2 vertices[4] =
 static const vec2 vertices[4] =