glapi: Move to src/mapi/.
[mesa.git] / progs / glsl / convolutions.c
index c2fb76e1aa5a91737cf2bf0714b5c34a6c70e8f5..fdfaf568a2518ca16b3cbc2d357e949fbdd48013 100644 (file)
@@ -182,7 +182,7 @@ static void fillConvolution(GLint *k,
 static void setupConvolution()
 {
    GLint *kernel = (GLint*)malloc(sizeof(GLint) * 9);
-   GLfloat scale;
+   GLfloat scale = 0.0;
    GLfloat *vecKer = (GLfloat*)malloc(sizeof(GLfloat) * 9 * 4);
    GLuint loc;
    GLuint i;
@@ -369,7 +369,7 @@ static void keyPress(unsigned char key, int x, int y)
    case 27:
       exit(0);
    default:
-      return;
+      break;
    }
    glutPostRedisplay();
 }