# HG changeset patch # User Sam Lantinga # Date 1153591316 0 # Node ID f3399f779a1d09fc951e7e9f2edd32d0bc311437 # Parent 8a162bfdc838862f5d09958903accba5cd3e4700 Bug fixes to the OpenGL renderer diff -r 8a162bfdc838 -r f3399f779a1d src/video/SDL_renderer_gl.c --- a/src/video/SDL_renderer_gl.c Sat Jul 22 08:33:18 2006 +0000 +++ b/src/video/SDL_renderer_gl.c Sat Jul 22 18:01:56 2006 +0000 @@ -70,7 +70,7 @@ SDL_TextureBlendMode_Blend | SDL_TextureBlendMode_Add | SDL_TextureBlendMode_Mod), (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast | - SDL_TextureScaleMode_Best), + SDL_TextureScaleMode_Slow), 18, { SDL_PixelFormat_Index1LSB, @@ -285,7 +285,7 @@ break; case SDL_PixelFormat_RGBA8888: internalFormat = GL_RGBA8; - format = GL_BGRA; + format = GL_RGBA; type = GL_UNSIGNED_INT_8_8_8_8; break; case SDL_PixelFormat_ABGR8888: @@ -502,7 +502,6 @@ glTexParameteri(texturedata->type, GL_TEXTURE_MAG_FILTER, GL_NEAREST); break; case SDL_TextureScaleMode_Slow: - case SDL_TextureScaleMode_Best: glTexParameteri(texturedata->type, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(texturedata->type, GL_TEXTURE_MAG_FILTER, GL_LINEAR); break; @@ -514,7 +513,7 @@ glTexCoord2f(maxu, minv); glVertex2i(maxx, miny); glTexCoord2f(minu, maxv); - glVertex2i(miny, maxy); + glVertex2i(minx, maxy); glTexCoord2f(maxu, maxv); glVertex2i(maxx, maxy); glEnd(); diff -r 8a162bfdc838 -r f3399f779a1d src/video/win32/SDL_d3drender.c --- a/src/video/win32/SDL_d3drender.c Sat Jul 22 08:33:18 2006 +0000 +++ b/src/video/win32/SDL_d3drender.c Sat Jul 22 18:01:56 2006 +0000 @@ -68,7 +68,7 @@ SDL_TextureBlendMode_Blend | SDL_TextureBlendMode_Add | SDL_TextureBlendMode_Mod), (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast | - SDL_TextureScaleMode_Best), + SDL_TextureScaleMode_Slow | SDL_TextureScaleMode_Best), 12, { SDL_PixelFormat_Index8, diff -r 8a162bfdc838 -r f3399f779a1d test/common.c --- a/test/common.c Sat Jul 22 08:33:18 2006 +0000 +++ b/test/common.c Sat Jul 22 18:01:56 2006 +0000 @@ -304,6 +304,9 @@ case SDL_Renderer_PresentVSync: fprintf(stderr, "PresentVSync"); break; + case SDL_Renderer_Accelerated: + fprintf(stderr, "Accelerated"); + break; default: fprintf(stderr, "0x%8.8x", flag); break;