Don't set the active texture when creating a palette

Fixes https://github.com/libsdl-org/SDL/issues/14705
This commit is contained in:
Sam Lantinga
2025-12-29 09:36:13 -08:00
parent 370e9407b5
commit 38345adff0

View File

@@ -1713,7 +1713,6 @@ static bool GLES2_CreatePalette(SDL_Renderer *renderer, SDL_TexturePalette *pale
if (!GL_CheckError("glGenTexures()", renderer)) {
return false;
}
data->glActiveTexture(GL_TEXTURE1);
data->glBindTexture(GL_TEXTURE_2D, palettedata->texture);
data->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
if (!GL_CheckError("glTexImage2D()", renderer)) {