Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Improved error message for unsupported texture format

  • Loading branch information
slouken committed Jan 13, 2011
1 parent 91a8755 commit caf68f1f31c85fa231853dbfa97a42f1e2f9fe9d

File 2 of 2 in caf68f1

@@ -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;
}

0 comments on commit caf68f1

Please sign in to comment.