diff --git a/src/video/SDL_renderer_gl.c b/src/video/SDL_renderer_gl.c index 845309624..e3938b1af 100644 --- a/src/video/SDL_renderer_gl.c +++ b/src/video/SDL_renderer_gl.c @@ -760,7 +760,8 @@ GL_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) if (!convert_format(renderdata, texture->format, &internalFormat, &format, &type)) { - SDL_SetError("Unsupported texture format"); + SDL_SetError("Texture format %s not supported by OpenGL", + SDL_GetPixelFormatName(texture->format)); return -1; } if (texture->format == SDL_PIXELFORMAT_UYVY && diff --git a/src/video/SDL_renderer_gles.c b/src/video/SDL_renderer_gles.c index f57f26a87..8025a3564 100644 --- a/src/video/SDL_renderer_gles.c +++ b/src/video/SDL_renderer_gles.c @@ -408,7 +408,8 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) type = GL_UNSIGNED_SHORT_4_4_4_4; break; default: - SDL_SetError("Unsupported by OpenGL ES texture format"); + SDL_SetError("Texture format %s not supported by OpenGL ES", + SDL_GetPixelFormatName(texture->format)); return -1; }