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

Improved error message for unsupported texture format

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

File 1 of 2 in caf68f1

@@ -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",
return -1;
if (texture->format == SDL_PIXELFORMAT_UYVY &&

0 comments on commit caf68f1

Please sign in to comment.