diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-10-09 20:04:08 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-10-09 20:04:08 +0400 |
commit | b754efcca572749c0aad2c94b9ca7a015bbc06b8 (patch) | |
tree | 8af2317b420740201089bb72726927e365552e90 /source/blender/editors/sculpt_paint | |
parent | fe727ab4a26351894ee277aacbfd1696316bc189 (diff) |
minor code cleanup.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 05fe23eb223..9649a4c5de8 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -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); |