Fixed bug 1728 - fixed compiler warnings
authorSam Lantinga
Tue, 26 Feb 2013 03:34:34 -0800
changeset 69280195a2cc093c
parent 6927 982b03203b73
child 6929 7fa90e780e2d
Fixed bug 1728 - fixed compiler warnings
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Mon Feb 25 16:52:54 2013 -0800
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Tue Feb 26 03:34:34 2013 -0800
     1.3 @@ -1258,6 +1258,8 @@
     1.4              case SDL_PIXELFORMAT_RGB888:
     1.5                  sourceType = GLES2_IMAGESOURCE_TEXTURE_RGB;
     1.6                  break;
     1.7 +            default:
     1.8 +                return -1;
     1.9          }
    1.10      }
    1.11      if (GLES2_SelectProgram(renderer, sourceType, blendMode) < 0)
    1.12 @@ -1424,6 +1426,8 @@
    1.13              case SDL_PIXELFORMAT_RGB888:
    1.14                  sourceType = GLES2_IMAGESOURCE_TEXTURE_RGB;
    1.15                  break;
    1.16 +            default:
    1.17 +                return -1;
    1.18          }
    1.19      }
    1.20      if (GLES2_SelectProgram(renderer, sourceType, blendMode) < 0)