diff --git a/samples/bin/datas/shader/edge.sfx b/samples/bin/datas/shader/edge.sfx index ce0d99c6..d944c583 100644 --- a/samples/bin/datas/shader/edge.sfx +++ b/samples/bin/datas/shader/edge.sfx @@ -21,7 +21,8 @@ void main() texture2D(texture, gl_TexCoord[0].xy + offx - offy) * 1.0 + texture2D(texture, gl_TexCoord[0].xy + offx + offy) * -1.0; - float edge = sqrt(hEdge.rgb * hEdge.rgb + vEdge.rgb * vEdge.rgb); + vec3 result = sqrt(hEdge.rgb * hEdge.rgb + vEdge.rgb * vEdge.rgb); + float edge = length(result); if (edge > threshold) gl_FragColor.rgb = vec3(0, 0, 0); else diff --git a/samples/ftp/Ftp.cpp b/samples/ftp/Ftp.cpp index c66fcf6c..b0c001ec 100644 --- a/samples/ftp/Ftp.cpp +++ b/samples/ftp/Ftp.cpp @@ -163,7 +163,7 @@ int main() { // Download a file from server std::string filename, directory; - std::cout << "filename of the file to download (relative to current directory): "; + std::cout << "Filename of the file to download (relative to current directory): "; std::cin >> filename; std::cout << "Directory to download the file to: "; std::cin >> directory;