No description
Find a file
Sam Lantinga ce9a72f4af Fixed bug 2575 - Current GL context tracking fails
Ronie Salgado

The GL Renderer current context tracking fails when one window is used with an SDL renderer but another separate window is used with a user handled OpenGL context.

Attached is a small program that reproduces this bug, at least in some Linux machines where an OpenGL renderer is provided by default.

Expected Output:
-"First window" should be blue.
-"Second window" should be green.

Gotten Output:
- "First window" black.
- "Second window" blue.

What happened:
The renderer created for the "first window" ends rendering into the "second window" OpenGL context.

Bug location:

SDL_render_gl.c - line 286 on hg:
static SDL_GLContext SDL_CurrentContext = NULL;

When making SDL_GL_MakeCurrent from the user perspective, that variable or the GL renderer is not notified about the OpenGL context change.

Solution proposal:
- Move the current GL context cache into another place global.
2014-06-15 18:09:39 -07:00
acinclude We have to fix the DLL name convention on Windows every time... 2012-10-19 21:43:41 -07:00
android-project Changed two Java nested classes into static nested classes. 2014-06-08 13:14:20 +02:00
build-scripts Adds missing Makefile for NACL test and a couple of smaller fixes 2014-06-06 18:33:17 -03:00
cmake CMake: Just assume Apple platforms have Cocoa support. 2014-02-23 01:10:33 -05:00
debian Updated SDL to version 2.0.3 2014-03-09 10:38:30 -07:00
include Fixed bug 2568 - NO_SDL_GLEXT should prevent OS glext.h as well 2014-06-15 17:37:35 -07:00
premake Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
src Fixed bug 2575 - Current GL context tracking fails 2014-06-15 18:09:39 -07:00
test Fixed format string faults in audio tests. 2014-06-09 17:25:03 +02:00
VisualC Fixed Visual Studio 2008 projects 2014-06-15 10:42:28 -07:00
VisualC-WinRT WinRT: made Win[Phone] 8.1 projects be structured like their 8.0 counterparts 2014-05-06 20:31:10 -04:00
visualtest Don't crash when no WM is present. 2013-11-27 10:29:27 -08:00
Xcode Don't link directly against OpenGL.framework on Mac OS X. 2014-06-05 11:04:07 -04:00
Xcode-iOS Updated iOS deployment target to iOS 5.1 2014-05-10 12:34:16 -07:00
.hgignore Ignore Visual Studio test data files 2014-06-08 11:59:36 -07:00
.hgtags Added tag release-2.0.3 for changeset 704a0bfecf75 2014-03-15 19:31:20 -07:00
Android.mk Fixed Android error on static lib build, if relative NDK_MODULE_PATH used 2014-06-15 13:01:10 -07:00
autogen.sh Need to generate aclocal.m4 when rebuilding configure, but we don't need to check it in. 2013-05-26 16:01:40 -07:00
BUGS.txt Credits were truncated in a previous commit. 2013-05-27 21:44:16 -07:00
CMakeLists.txt Fixed building on command line Mac OS X 2014-06-07 20:43:12 -07:00
configure Add coreaudio to the configure script's summary output. 2014-06-15 01:19:01 -04:00
configure.in Add coreaudio to the configure script's summary output. 2014-06-15 01:19:01 -04:00
COPYING.txt Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
CREDITS.txt Added Julian Winter to the credits for the SDL 2.0 website. 2013-08-12 08:45:37 -07:00
INSTALL.txt Updated the installation instructions to cover all supported platforms 2013-05-26 12:42:46 -07:00
Makefile.in Added missing headers that should be installed. 2014-06-05 09:27:06 -07:00
Makefile.minimal Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module. 2013-08-20 19:57:11 -04:00
Makefile.pandora Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module. 2013-08-20 19:57:11 -04:00
Makefile.psp Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module. 2013-08-20 19:57:11 -04:00
Makefile.wiz
README-android.txt Updated paths in README for Android. 2013-12-25 16:53:39 +01:00
README-cmake.txt Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
README-directfb.txt Fixed recently deleted Ms in READMEs. 2013-05-30 12:15:00 +02:00
README-dynapi.txt Minor change to a README to test Mercurial server. 2014-04-12 17:40:55 -04:00
README-gesture.txt Changed parameter name for gesture template save functions from "src" to "dst". 2013-11-02 12:07:21 +01:00
README-hg.txt Fixed recently deleted Ms in READMEs. 2013-05-30 12:15:00 +02:00
README-ios.txt Updated iOS deployment target to iOS 5.1 2014-05-10 12:34:16 -07:00
README-linux.txt Corrected package list for Wayland/Mir support (was missing libxkbcommon-dev). 2014-06-05 01:55:52 -04:00
README-macosx.txt Updated to build on Mac OS X 10.7 with Xcode 4.6 2014-03-02 12:58:00 -08:00
README-nacl.txt Fixed typos in documentation. 2014-06-09 17:28:08 +02:00
README-pandora.txt Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
README-platforms.txt Updated supported iOS version. 2013-07-12 23:16:11 -07:00
README-porting.txt Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
README-psp.txt Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
README-raspberrypi.txt Fixed typo in documentation. 2014-01-26 23:42:25 +01:00
README-SDL.txt Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
README-touch.txt Fixed recently deleted Ms in READMEs. 2013-05-30 12:15:00 +02:00
README-wince.txt Updated WinCE readme to note WinRT work. 2014-03-10 00:31:31 -04:00
README-windows.txt Corrected name of hint in README. 2014-02-15 23:52:04 +01:00
README-winrt.txt Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
README.txt Added information on reporting bugs to the README.txt file 2013-11-16 10:27:46 -08:00
sdl2-config.in Revert fix for bug 1392 because it breaks linking with mingw32 2013-10-21 10:28:57 -07:00
sdl2.m4 Fixed bug 1976 - SDL2.m4 shares same variables as SDL.m4 so they cache values 2013-07-21 11:52:16 -07:00
sdl2.pc.in Revert fix for bug 1392 because it breaks linking with mingw32 2013-10-21 10:28:57 -07:00
SDL2.spec.in Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. 2013-05-26 11:06:17 -07:00
TODO.txt Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms 2013-10-20 20:41:30 -07:00
VisualC.html Fixed nesting of HTML elements in documentation. 2014-06-09 17:37:59 +02:00
WhatsNew.txt Chrome's Native Client backend implementation 2014-06-06 15:45:59 -03:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

SDL officially supports Windows, Mac OS X, Linux, iOS, and Android.
Support for other platforms may be found in the source code.

SDL is written in C, works natively with C++, and there are bindings 
available for several other languages, including C# and Python.

This library is distributed under the zlib license, which can be found
in the file "COPYING.txt".

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 and FAQs are available online at:
	http://wiki.libsdl.org/

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

If you want to report bugs or contribute patches, please submit them to
bugzilla:
    http://bugzilla.libsdl.org/

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)