Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 4990:397e748d901a
Improved error message for unsupported texture format
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Jan 2011 19:33:04 -0800 |
parents | aa8888658021 |
children | e8916fe9cfc8 |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c Wed Jan 12 17:53:06 2011 -0800 +++ b/src/video/SDL_renderer_gl.c Wed Jan 12 19:33:04 2011 -0800 @@ -760,7 +760,8 @@ 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 &&