[Mesa-dev] [PATCH] glx: Initialize OpenGL version to 1.0
Rico Schüller
kgbricola at web.de
Sun Sep 1 12:30:19 PDT 2013
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, choose a
more sane default OpenGL 1.0 as mentioned in the ARB_create_context spec:
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)
This fixes: http://bugs.winehq.org/show_bug.cgi?id=34238
Signed-off-by: Rico Schüller <kgbricola at web.de>
---
src/glx/dri2_glx.c | 10 +++++-----
src/glx/dri_common.c | 14 +++++++-------
src/glx/drisw_glx.c | 10 +++++-----
3 files changed, 17 insertions(+), 17 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-glx-Initialize-OpenGL-version-to-1.0.txt
Type: text/x-patch
Size: 2523 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130901/fa8aa30b/attachment.bin>
More information about the mesa-dev
mailing list