Commits

Alex Szpakowski committed 01e8686

Fixed Image:refresh regenerating mipmaps multiple times if mipmap filtering is enabled on an uncompressed image

  • Participants
  • Parent commits e0ec6b6

Comments (0)

Files changed (1)

src/modules/graphics/opengl/Image.cpp

 		                GL_RGBA,
 		                GL_UNSIGNED_BYTE,
 		                data->getData());
+		glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_FALSE);
 	}
 }