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

If you pass in texture format 0, it'll use the first supported textur…

…e format.
  • Loading branch information
slouken committed Feb 28, 2011
1 parent dd7cf0c commit e07b1b18bcde9ed391d2930f2f3d7254aea9208e
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/render/SDL_render.c
@@ -260,6 +260,9 @@ SDL_CreateTexture(SDL_Renderer * renderer, Uint32 format, int access, int w, int


if (!format) {
format = renderer->info.texture_formats[0];
SDL_SetError("Palettized textures are not supported");
return NULL;

0 comments on commit e07b1b1

Please sign in to comment.