Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gles.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 | 8431f59485d0 |
children | 4cb4b18cbae3 |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c Wed Jan 12 17:53:06 2011 -0800 +++ b/src/video/SDL_renderer_gles.c Wed Jan 12 19:33:04 2011 -0800 @@ -408,7 +408,8 @@ 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; }