Fix black canvas when hardware acceleration was enabled
The value of KisGLTexturesInfo::internalFormat and KisGLTexturesInfo::format being chosen was not compatible
Maniphest: T10784