diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-09-06 22:54:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-09-06 22:54:06 +0400 |
commit | d444f25b2864b7d4a9ae39211c695e36ffd813a8 (patch) | |
tree | f05a328f142955753bc7f76cda8fe398ee7835e1 /source/blender/src/imagepaint.c | |
parent | c54e20a86a62e1d31ad5bc48c281e468732fbfea (diff) |
- Fix a display glitch with float image painting and undo.
- Fix a crash with float images texture mapped onto meshes, it didn't
always do conversion from float to byte before uploading to OpenGL.
Diffstat (limited to 'source/blender/src/imagepaint.c')
-rw-r--r-- | source/blender/src/imagepaint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/imagepaint.c b/source/blender/src/imagepaint.c index 1e372c3ec28..d97f63b8bc1 100644 --- a/source/blender/src/imagepaint.c +++ b/source/blender/src/imagepaint.c @@ -255,10 +255,12 @@ void imagepaint_undo() if (imapaintundo.tiles[tile]) imapaint_copy_tile(ima, tile, x, y, 1); + free_realtime_image(ima); /* force OpenGL reload */ + if(ima->ibuf->rect_float) + imb_freerectImBuf(ima->ibuf); /* force recreate of char rect */ + allqueue(REDRAWIMAGE, 0); allqueue(REDRAWVIEW3D, 0); - - free_realtime_image(ima); /* force OpenGL reload */ } void free_imagepaint() |