From 46646506f1c95739998136472727d06760b75cf6 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Fri, 11 Dec 2015 08:31:17 -0800 Subject: [PATCH] remove explicit 'f' in glbench shader TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1503383006 --- bench/GLInstancedArraysBench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/GLInstancedArraysBench.cpp b/bench/GLInstancedArraysBench.cpp index 4ef813c852..d89c087605 100644 --- a/bench/GLInstancedArraysBench.cpp +++ b/bench/GLInstancedArraysBench.cpp @@ -126,7 +126,7 @@ GrGLuint GLCpuPosInstancedArraysBench::setupShader(const GrGLContext* ctx) { vshaderTxt.append( "void main()\n" "{\n" - "gl_Position = vec4(a_position, 0.f, 1.f);\n" + "gl_Position = vec4(a_position, 0., 1.);\n" "o_color = a_color;\n" "}\n"); @@ -152,7 +152,7 @@ GrGLuint GLCpuPosInstancedArraysBench::setupShader(const GrGLContext* ctx) { fshaderTxt.appendf( "void main()\n" "{\n" - "%s = vec4(o_color, 1.0f);\n" + "%s = vec4(o_color, 1.0);\n" "}\n", fsOutName); return CreateProgram(gl, vshaderTxt.c_str(), fshaderTxt.c_str()); -- 2.34.1