From 6f8bfdfcbf31679d32ba908bb58bcc59c37c3091 Mon Sep 17 00:00:00 2001 From: David G Yu Date: Thu, 15 Aug 2013 10:06:16 +0100 Subject: [PATCH] Fixed implicit int to float warnings in xform feedback kernel --- opensubdiv/osd/glslTransformFeedbackKernel.glsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opensubdiv/osd/glslTransformFeedbackKernel.glsl b/opensubdiv/osd/glslTransformFeedbackKernel.glsl index 1ad53e9c..c565e5c6 100644 --- a/opensubdiv/osd/glslTransformFeedbackKernel.glsl +++ b/opensubdiv/osd/glslTransformFeedbackKernel.glsl @@ -303,7 +303,7 @@ void catmarkComputeVertexA() addWithWeight(dst, readVertex(eidx1), weight * 0.125f); } if(! vertexPass) - addVaryingWithWeight(dst, readVertex(p), 1); + addVaryingWithWeight(dst, readVertex(p), 1.0f); writeVertex(dst); } @@ -340,7 +340,7 @@ void catmarkComputeVertexB() addWithWeight(dst, readVertex(texelFetch(_V0_IT, h+j*2+1).x), weight * wp); #endif } - addVaryingWithWeight(dst, readVertex(p), 1); + addVaryingWithWeight(dst, readVertex(p), 1.0f); writeVertex(dst); } @@ -369,7 +369,7 @@ void loopComputeVertexB() for(int j = 0; j < n; ++j){ addWithWeight(dst, readVertex(texelFetch(_V0_IT, h+j).x), weight * beta); } - addVaryingWithWeight(dst, readVertex(p), 1); + addVaryingWithWeight(dst, readVertex(p), 1.0f); writeVertex(dst); }