src/render/opengl/SDL_render_gl.c
changeset 5203 25ffd4e5255c
parent 5195 bb45ecd958d8
child 5204 daa5463466c5
--- 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;