textures: Remove unnecessary static_cast

This commit is contained in:
Joel16 2022-02-06 14:39:24 -05:00
parent f4fd69ddc1
commit 6510aa29a9

View File

@ -121,7 +121,7 @@ namespace Textures {
static bool LoadImageOther(unsigned char **data, SceOff &size, Tex &texture) {
stbi_uc *image = nullptr;
image = stbi_load_from_memory(*data, size, &texture.width, &texture.height, nullptr, BYTES_PER_PIXEL);
bool ret = Textures::Create(static_cast<unsigned char*>(image), GL_RGBA, texture);
bool ret = Textures::Create(image, GL_RGBA, texture);
stbi_image_free(image);
return ret;
}