BACKENDS: OPENGL: Use isCLUT8()

This commit is contained in:
Eugene Sandulenko 2023-02-02 19:32:45 +01:00
parent 0722f5e9c0
commit e0736936e9
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -378,7 +378,7 @@ FakeTexture::FakeTexture(GLenum glIntFormat, GLenum glFormat, GLenum glType, con
_fakeFormat(fakeFormat),
_rgbData(),
_palette(nullptr) {
if (_fakeFormat == Graphics::PixelFormat::createFormatCLUT8()) {
if (_fakeFormat.isCLUT8()) {
_palette = new uint32[256];
memset(_palette, 0, sizeof(uint32));
}