[gens-sdl] GLShaderFastBlur.cpp: Removed an unnecessary include; updated the copyrigh... feature/gens-sdl-GLEW github/feature/gens-sdl-GLEW
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 01:33:33 +0000 (21:33 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 01:33:33 +0000 (21:33 -0400)
Previously, strlen() was used to determine the length of the
ARB fragment program. Since the program was changed from
const char *const to const char[], strlen() is no longer needed,
since sizeof() works.

src/gens-sdl/GLShaderFastBlur.cpp

index 141bf76..4d8ceeb 100644 (file)
@@ -2,7 +2,7 @@
  * gens-sdl: Gens/GS II basic SDL frontend.                                *
  * GLShaderFastBlur.cpp: OpenGL Shader. (Fast Blur)                        *
  *                                                                         *
- * Copyright (c) 2010-2011 by David Korth.                                 *
+ * Copyright (c) 2010-2015 by David Korth.                                 *
  *                                                                         *
  * This program is free software; you can redistribute it and/or modify it *
  * under the terms of the GNU General Public License as published by the   *
@@ -24,9 +24,6 @@
 // LOG_MSG() subsystem.
 #include "libgens/macros/log_msg.h"
 
-// C includes.
-#include <string.h>
-
 namespace GensSdl {
 
 class GLShaderFastBlurPrivate {
@@ -131,7 +128,7 @@ int GLShaderFastBlur::enable(void)
                // TODO: POSIX error code?
                return -1;
        }
-       
+
        // Enable the shader.
        // TODO: Get texture width for the parameter!
        glEnable(GL_FRAGMENT_PROGRAM_ARB);