Fix the darken edges of the image prcessed by blur filters.

Signed-off-by: zhanghongquan112 <zhanghongquan13@huawei.com>
Change-Id: Iddc95726d8b7fc3b4a8ea9e1dac20e05b4fc2176
This commit is contained in:
zhanghongquan112 2022-02-17 10:11:26 +08:00
parent 40a4fcae5c
commit fda679471b

View File

@ -49,8 +49,8 @@ void ImageChain::CreatTexture(unsigned int& textureID)
{
glGenTextures(1, &textureID);
glBindTexture(GL_TEXTURE_2D, textureID);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glBindTexture(GL_TEXTURE_2D, 0);