mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-01 11:34:40 +00:00
Don't set the active texture when creating a palette
Fixes https://github.com/libsdl-org/SDL/issues/14705
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user