Minor consistency cleanup and documentation link update.
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Feb 2011 00:48:41 -0800
changeset 520325ffd4e5255c
parent 5202 1f2b17f42fd0
child 5204 daa5463466c5
Minor consistency cleanup and documentation link update.
src/render/direct3d/SDL_render_d3d.c
src/render/opengl/SDL_render_gl.c
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Sun Feb 06 00:48:16 2011 -0800
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Sun Feb 06 00:48:41 2011 -0800
     1.3 @@ -116,7 +116,7 @@
     1.4      D3D_CreateRenderer,
     1.5      {
     1.6       "direct3d",
     1.7 -     (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED),
     1.8 +     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
     1.9       1,
    1.10       {SDL_PIXELFORMAT_ARGB8888},
    1.11       0,
     2.1 --- a/src/render/opengl/SDL_render_gl.c	Sun Feb 06 00:48:16 2011 -0800
     2.2 +++ b/src/render/opengl/SDL_render_gl.c	Sun Feb 06 00:48:41 2011 -0800
     2.3 @@ -34,7 +34,7 @@
     2.4  /* OpenGL renderer implementation */
     2.5  
     2.6  /* Details on optimizing the texture path on Mac OS X:
     2.7 -   http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/chapter_10_section_2.html
     2.8 +   http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/opengl_texturedata.html
     2.9  */
    2.10  
    2.11  /* Used to re-create the window with OpenGL capability */
    2.12 @@ -72,7 +72,7 @@
    2.13      GL_CreateRenderer,
    2.14      {
    2.15       "opengl",
    2.16 -     (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED),
    2.17 +     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
    2.18       1,
    2.19       {SDL_PIXELFORMAT_ARGB8888},
    2.20       0,
    2.21 @@ -331,7 +331,6 @@
    2.22                 GLint* internalFormat, GLenum* format, GLenum* type)
    2.23  {
    2.24      switch (pixel_format) {
    2.25 -    case SDL_PIXELFORMAT_RGB888:
    2.26      case SDL_PIXELFORMAT_ARGB8888:
    2.27          *internalFormat = GL_RGBA8;
    2.28          *format = GL_BGRA;
     3.1 --- a/src/render/opengles/SDL_render_gles.c	Sun Feb 06 00:48:16 2011 -0800
     3.2 +++ b/src/render/opengles/SDL_render_gles.c	Sun Feb 06 00:48:41 2011 -0800
     3.3 @@ -74,8 +74,8 @@
     3.4  SDL_RenderDriver GLES_RenderDriver = {
     3.5      GLES_CreateRenderer,
     3.6      {
     3.7 -     "opengl_es",
     3.8 -     (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED),
     3.9 +     "opengles",
    3.10 +     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
    3.11       1,
    3.12       {SDL_PIXELFORMAT_ABGR8888},
    3.13       0,
    3.14 @@ -331,8 +331,7 @@
    3.15          type = GL_UNSIGNED_BYTE;
    3.16          break;
    3.17      default:
    3.18 -        SDL_SetError("Texture format %s not supported by OpenGL ES",
    3.19 -                     SDL_GetPixelFormatName(texture->format));
    3.20 +        SDL_SetError("Texture format not supported");
    3.21          return -1;
    3.22      }
    3.23