sdl2-compat: SDL_GL_BindTexture: Use safer default value for texture dimensions.

From 8f4874d87f102e88e523b0d2c1d7422cd2f28824 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 8 Jan 2024 14:23:09 -0500
Subject: [PATCH] SDL_GL_BindTexture: Use safer default value for texture
 dimensions.

---
 src/sdl2_compat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index b5908c4..08c531e 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -6407,10 +6407,10 @@ SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh)
         pglBindTexture((GLenum) target, (GLuint) tex);
 
         if (texw) {
-            *texw = SDL3_GetFloatProperty(props, SDL_PROPERTY_TEXTURE_OPENGL_TEX_W_FLOAT, 0.0f);
+            *texw = SDL3_GetFloatProperty(props, SDL_PROPERTY_TEXTURE_OPENGL_TEX_W_FLOAT, 1.0f);
         }
         if (texh) {
-            *texh = SDL3_GetFloatProperty(props, SDL_PROPERTY_TEXTURE_OPENGL_TEX_H_FLOAT, 0.0f);
+            *texh = SDL3_GetFloatProperty(props, SDL_PROPERTY_TEXTURE_OPENGL_TEX_H_FLOAT, 1.0f);
         }
     } else if ((tex = SDL3_GetNumberProperty(props, SDL_PROPERTY_TEXTURE_OPENGLES2_TEXTURE_NUMBER, -1)) != -1) {  // opengles2 renderer.
         const Sint64 target = SDL3_GetNumberProperty(props, SDL_PROPERTY_TEXTURE_OPENGLES2_TEXTURE_TARGET, 0);