minor code cleanup.
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 16:04:08 +0000 (16:04 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 16:04:08 +0000 (16:04 +0000)
source/blender/editors/sculpt_paint/paint_cursor.c

index 05fe23eb223a84555fb9d047ae0cf4e74118b065..9649a4c5de832ab340f622875a63ad1100b548a4 100644 (file)
@@ -73,7 +73,6 @@ typedef struct TexSnapshot {
        GLuint overlay_texture;
        int winx;
        int winy;
-       bool init;
        int old_size;
        float old_zoom;
        bool old_col;
@@ -417,7 +416,6 @@ static int load_tex_cursor(Brush *br, ViewContext *vc, float zoom)
        if (refresh) {
                if (!init) {
                        glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, size, size, 0, GL_ALPHA, GL_UNSIGNED_BYTE, buffer);
-                       init = 1;
                }
                else {
                        glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size, size, GL_ALPHA, GL_UNSIGNED_BYTE, buffer);