Skip to content


Subversion checkout URL

You can clone with
Download ZIP
copy of SDL svn trunk
C Shell Objective-C Other
Branch: master

Adam Strzelecki to SDL

When graphic card has no GL_ARB_texture_rectangle YUV textures mapped with SDL_RenderCopy are stretched 2x horizontally, so only left half of texture is visible. This is due:
       data->texw = (GLfloat) (texture->w) / texture_w;
       data->texh = (GLfloat) texture->h / texture_h;
But afterwards texture_w /= 2 for YUV texture, but data->texw stays as it was before, while it should be multiplied 2x.

This bug can be seen in any program setting env variables: GL_APPLE_ycbcr_422=0 GL_EXT_texture_rectangle=0 GL_ARB_texture_rectangle=0

git-svn-id: c70aab31-4412-0410-b14c-859654838e24
latest commit 125dd5879f
slouken authored
Failed to load latest commit information.
VisualC Fixed building under Visual Studio
VisualCE Removed outdated Dreamcast support
Xcode-iPhoneOS Fixed compilation on iPhone
Xcode Added Xcode-iPhoneOS to make dist
acinclude A better solution to making the default build optimization -O3
build-scripts Merge r5179:5180 from branches/SDL-1.2: Xcode 3.2 fix.
include Fixed bug #926
src Adam Strzelecki to SDL
test Fixed compile warning on 64-bit Mac OS X Implemented many compatibility functions
BUGS Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown.
Borland.html *** empty log message *** *** empty log message ***
COPYING This library is now available under the LGPL 2.1, the major change of…
CREDITS Removed outdated Atari support
INSTALL Added svn checkout install step
Makefile.ds First pass at Ryan's assertion code, minor tweaks to come. Fixed bug #928
Makefile.minimal Initial work on power subsystem for SDL 1.3.
Makefile.pandora Patch from David Carre:
Makefile.wiz Scott to slouken
NOTES Added notes on the next steps for SDL 1.3
README Removed outdated Atari support
README-SDL.txt Initial revision
README.BeOS Added a reminder on where to put
README.DirectFB DirectFB cleanups & simple window manager
README.MacOSX Merge trunk-1.3-3
README.PS3 Merged Martin's code changes from Google Summer of Code 2009
README.Porting Added the dummy audio driver to instructions
README.QNX Removed references to CD-ROM support from the README files
README.RISCOS Removed references to CD-ROM support from the README files
README.SVN Testing Subversion commit RSS feed.
README.Watcom Fixed bug #818
README.WinCE Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
README.iphoneos Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_T…
README.pandora OpenPandora support added by David Carré Fixed bug #928
TODO Migrated most of the TODO list to the SDL 1.3 Roadmap wiki
UNDER_CONSTRUCTION.txt Revamp of the video system in progress - adding support for multiple …
VisualC.html Removed newline, to make sure revision control post-commit hook is wo… Fixed bug #818
WhatsNew Added API requested in bug #43: gcc can't generate dependencies for a file that doesn't exist, so fir… Fixed bug #935 Merged r3002:3003 from branches/SDL-1.2: libdir fix in sdl-config and…
sdl.m4 pkg-config replaced sdl-config in these cases. Merged fix for bug #531 from SDL 1.2 revision 3511


                         Simple DirectMedia Layer


                                Version 1.2


This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

The current version supports Linux, Windows, Windows CE, BeOS, MacOS,
Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
The code contains support for AIX, OSF/Tru64, RISC OS, and SymbianOS,
but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under GNU LGPL version 2, which can be
found in the file  "COPYING".  This license allows you to use SDL
freely in commercial programs as long as you link with the dynamic

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "docs/index.html", and
a documentation wiki is available online at:

The test programs in the "test" subdirectory are in the public domain.

Frequently asked questions are answered online:

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:

	Sam Lantinga				(

Something went wrong with that request. Please try again.