diff src/render/opengl/SDL_render_gl.c @ 5206:25ffd4e5255c

Minor consistency cleanup and documentation link update.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Feb 2011 00:48:41 -0800
parents bb45ecd958d8
children daa5463466c5
line wrap: on
line diff
--- a/src/render/opengl/SDL_render_gl.c	Sun Feb 06 00:48:16 2011 -0800
+++ b/src/render/opengl/SDL_render_gl.c	Sun Feb 06 00:48:41 2011 -0800
@@ -34,7 +34,7 @@
 /* OpenGL renderer implementation */
 
 /* Details on optimizing the texture path on Mac OS X:
-   http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/chapter_10_section_2.html
+   http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/opengl_texturedata.html
 */
 
 /* Used to re-create the window with OpenGL capability */
@@ -72,7 +72,7 @@
     GL_CreateRenderer,
     {
      "opengl",
-     (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED),
+     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
      1,
      {SDL_PIXELFORMAT_ARGB8888},
      0,
@@ -331,7 +331,6 @@
                GLint* internalFormat, GLenum* format, GLenum* type)
 {
     switch (pixel_format) {
-    case SDL_PIXELFORMAT_RGB888:
     case SDL_PIXELFORMAT_ARGB8888:
         *internalFormat = GL_RGBA8;
         *format = GL_BGRA;