Disable mipmapping in texture paint mode, so fast redrawing will now

work by default for power-of-two textures.

Improved texture painting across different images a bit.
This commit is contained in:
2006-11-26 23:14:52 +00:00
parent 0cd62a9298
commit 9afa4619ed
8 changed files with 94 additions and 36 deletions

View File

@@ -408,6 +408,9 @@ static void SaveState(void)
init_realtime_GL();
init_gl_stuff();
if(G.f & G_TEXTUREPAINT)
texpaint_enable_mipmap();
if(G.scene->camera==0 || G.scene->camera->type!=OB_CAMERA)
error("no (correct) camera");
@@ -416,6 +419,9 @@ static void SaveState(void)
static void RestoreState(void)
{
if(G.f & G_TEXTUREPAINT)
texpaint_disable_mipmap();
curarea->win_swap = 0;
curarea->head_swap=0;
allqueue(REDRAWVIEW3D, 1);