SDL: opengl: Creating a texture trashes the cached `texturing` state, fix it. (b24d6)

From b24d6bd59a86059383742b9b31ac955f8f4a49c4 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 23 Nov 2023 20:00:01 -0500
Subject: [PATCH] opengl: Creating a texture trashes the cached `texturing`
 state, fix it.

Reference Issue #7194.

(cherry picked from commit e9b486937238680053bdf76b27693e120f00a70f)
---
 src/render/opengl/SDL_render_gl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/render/opengl/SDL_render_gl.c b/src/render/opengl/SDL_render_gl.c
index c047c08c614a..04c5d5100268 100644
--- a/src/render/opengl/SDL_render_gl.c
+++ b/src/render/opengl/SDL_render_gl.c
@@ -450,6 +450,7 @@ static int GL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Pr
     GL_ActivateRenderer(renderer);
 
     renderdata->drawstate.texture = NULL; /* we trash this state. */
+    renderdata->drawstate.texturing = SDL_FALSE; /* we trash this state. */
 
     if (texture->access == SDL_TEXTUREACCESS_TARGET &&
         !renderdata->GL_EXT_framebuffer_object_supported) {