Fix T77780 Overlay: Weight colors are not in render in the right colorspace

This was just a missing conversion.
This commit is contained in:
Clément Foucault 2020-07-01 18:53:30 +02:00
parent f228a8948b
commit 11a1ddfd30
1 changed files with 1 additions and 1 deletions

View File

@ -509,5 +509,5 @@ static GPUTexture *DRW_create_weight_colorramp_texture(void)
pixels[i][3] = 1.0f;
}
return GPU_texture_create_1d(256, GPU_RGBA8, pixels[0], error);
return GPU_texture_create_1d(256, GPU_SRGB8_A8, pixels[0], error);
}