mesa/src
Rico Schüller 3a2926fdbf glx: Initialize OpenGL version to 1.0
The old code in dri2_glx suffered from a typographical error that caused
the default version to be 2.1 instead of 1.2 (minimum required by the
Linux OpenGL ABI).  drisw_glx had a similar error resulting in a default
version of 0.1.

Some driver/card combinations (r200/RV280, i915/915G) don't support
OpenGL 2.1.  These create in some corner cases an indirect context
instead of a direct context when calling glXCreateContextAttribsARB().
This happens because of a bad default value.  To avoid this, just used
the default value specified by the GLX_ARB_create_context specification:

    "The default values for GLX_CONTEXT_MAJOR_VERSION_ARB and
    GLX_CONTEXT_MINOR_VERSION_ARB are 1 and 0 respectively. In this
    case, implementations will typically return the most recent version
    of OpenGL they support which is backwards compatible with OpenGL 1.0
    (e.g. 3.0, 3.1 + GL_ARB_compatibility, or 3.2 compatibility
    profile)"

Refactor all the default value setting to dri2_convert_glx_attribs, and
make sure the correct defaults are set in that one place.

Signed-off-by: Rico Schüller <kgbricola@web.de>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla http://bugs.winehq.org/show_bug.cgi?id=34238
Cc: "9.1 9.2" <mesa-stable@lists.freedesktop.org>

(cherry picked from commit 8b302e1635)
2013-09-27 15:27:26 -07:00
..
egl gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
gallium nvc0: restore viewport after blit 2013-09-27 15:27:05 -07:00
gbm gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
getopt
glsl glsl: Reallow precision qualifiers on structure members 2013-09-27 15:27:14 -07:00
glx glx: Initialize OpenGL version to 1.0 2013-09-27 15:27:26 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi glapi/gen: build temporary files in the build directory 2013-08-21 15:26:05 -07:00
mesa i965/fs: Gen4: Zero out extra coordinates when using shadow compare 2013-09-27 15:25:53 -07:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00