src/video/SDL_renderer_gles.c
changeset 4963 604077962776
parent 4929 aa8888658021
child 4985 047a580d30f3
     1.1 --- a/src/video/SDL_renderer_gles.c	Tue Jan 04 21:05:42 2011 -0800
     1.2 +++ b/src/video/SDL_renderer_gles.c	Wed Jan 05 00:09:19 2011 -0800
     1.3 @@ -118,7 +118,8 @@
     1.4        SDL_PIXELFORMAT_ABGR4444,
     1.5        SDL_PIXELFORMAT_ABGR1555,
     1.6        SDL_PIXELFORMAT_BGR565,
     1.7 -      SDL_PIXELFORMAT_BGR24,
     1.8 +      SDL_PIXELFORMAT_RGB24,
     1.9 +      SDL_PIXELFORMAT_BGR888,
    1.10        SDL_PIXELFORMAT_ABGR8888},
    1.11       0,
    1.12       0}
    1.13 @@ -380,11 +381,12 @@
    1.14      GLenum result;
    1.15  
    1.16      switch (texture->format) {
    1.17 -    case SDL_PIXELFORMAT_BGR24:
    1.18 +    case SDL_PIXELFORMAT_RGB24:
    1.19          internalFormat = GL_RGB;
    1.20          format = GL_RGB;
    1.21          type = GL_UNSIGNED_BYTE;
    1.22          break;
    1.23 +    case SDL_PIXELFORMAT_BGR888:
    1.24      case SDL_PIXELFORMAT_ABGR8888:
    1.25          internalFormat = GL_RGBA;
    1.26          format = GL_RGBA;