Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4989:58b6bb4a45e9 | 4990:397e748d901a |
---|---|
406 internalFormat = GL_RGBA; | 406 internalFormat = GL_RGBA; |
407 format = GL_RGBA; | 407 format = GL_RGBA; |
408 type = GL_UNSIGNED_SHORT_4_4_4_4; | 408 type = GL_UNSIGNED_SHORT_4_4_4_4; |
409 break; | 409 break; |
410 default: | 410 default: |
411 SDL_SetError("Unsupported by OpenGL ES texture format"); | 411 SDL_SetError("Texture format %s not supported by OpenGL ES", |
412 SDL_GetPixelFormatName(texture->format)); | |
412 return -1; | 413 return -1; |
413 } | 414 } |
414 | 415 |
415 data = (GLES_TextureData *) SDL_calloc(1, sizeof(*data)); | 416 data = (GLES_TextureData *) SDL_calloc(1, sizeof(*data)); |
416 if (!data) { | 417 if (!data) { |