summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxcurrent.c
Commit message (Collapse)AuthorAgeFilesLines
* apple: Purge existing (not working) GLX_USE_APPLEGL from dated libGL on OSXJeremy Huddleston2010-01-031-7/+0
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* glx: indent -br -i3 -npcs --no-tabsRALOVICH, Kristóf2009-08-131-16/+13
| | | | | Some manual intervention applied since XEXT_* and other macro magic fooled indent. Auto generated files were also skipped.
* glx: remove XTHREADS supportRALOVICH, Kristóf2009-07-271-39/+1
|
* GLX: attempt to fix glean makeCurrent test cases.Dave Airlie2009-06-171-1/+1
| | | | | | | | | | | Two parts to this: One we don't keep pointers to possibly freed memory anymore once we unbind the drawables from the context. Brian I need to figure out what the comment you made there, can we get a glean/piglit test so we can fix it properly? If the new gc is the same as the oldGC, we call the unbind even though we just bound it in that function. doh.
* glx: MakeCurrent fixes.Thomas Hellstrom2009-04-021-9/+39
| | | | | | | | | | 1) If MakeContextCurrent is called with (NULL, None, None), Don't send the request to the X server if the current context is direct. 2) Return BadMatch in some error cases according to the glx spec. 3) If MakeContextCurrent is called for a context which is current in another thread, return BadAccess according to the glx spec. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* Fix issues with glXMakeContextCurrent and glXMakeCurrentReadSGIIan Romanick2009-01-201-21/+25
| | | | | | | | | | | | | | | | | | | | There were several bugs in the infrastructure for these two routines. 1. GLX_ALIAS was incorrectly used. The function and its alias must be identical! glXMakeContextCurrent / glXMakeCurrentReadSGI and MakeContextCurrent had different parameters. This caused the last parameter of MakeContextCurrent to get random values. 2. We based the implementation of glXMakeContextCurrent on the manual page instead of the GLX spec. The GLX spec says that glXMakeContextCurrent can be passed a Window as a drawable. When this happens, it will behave just like glXMakeCurrentReadSGI or glXMakeCurrent. 3. If there was a problem finding or creating the DRI drawable, MakeContextCurrent would crash instead of returning an error. This commit fixes all three issues, and fixes bug #18367 and bug #19625.
* Build fixes for gcc 2.95Matthieu Herrb2009-01-111-3/+2
|
* Don't mess with emacs tab width.Kristian Høgsberg2008-11-111-1/+0
|
* glx: indent -br -i3 -npcs --no-tabs glxcurrent.cRALOVICH, Kristóf2008-10-131-265/+284
|
* glx: add a line of Emacs helping variablesRALOVICH, Kristóf2008-10-131-0/+1
|
* Update to SGI FreeB 2.0.Adam Jackson2008-09-191-33/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Under the terms of version 1.1, "once Covered Code has been published under a particular version of the License, Recipient may, for the duration of the License, continue to use it under the terms of that version, or choose to use such Covered Code under the terms of any subsequent version published by SGI." FreeB 2.0 license refers to "dates of first publication". They are here taken to be 1991-2000, as noted in the original license text: ** Original Code. The Original Code is: OpenGL Sample Implementation, ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. ** Copyright in any portions created by third parties is as indicated ** elsewhere herein. All Rights Reserved. Official FreeB 2.0 text: http://oss.sgi.com/projects/FreeB/SGIFreeSWLicB.2.0.pdf As always, this code has not been tested for conformance with the OpenGL specification. OpenGL conformance testing is available from http://khronos.org/ and is required for use of the OpenGL logo in product advertising and promotion.
* glx: remove #include "glheader.h" linesBrian Paul2008-09-181-1/+0
| | | | | Was only used to get the PUBLIC/USED macros. Also, replace "GL_FALSE" with "False" in a couple places.
* glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protectionJeremy Huddleston2008-08-081-0/+8
|
* glx: split out current context codeGeorge Sapountzis2008-04-231-0/+510
also clean header inclusion after code movement