Fix core context creation in GdkGLContext

Desktop / GNOME / GTK - Niels Nesse [sonic.net] - 28 January 2015 06:00 UTC

- Specifically request GL version when creating context. Just specifying core profile bit results in the requested version defaulting to 1.0 which causes the core profile bit to be ignored and an arbitrary compatability context to be returned.

- Fix GL painting by removing GL calls that have been depricated by the 3.2 core profile.

- Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2 core.

https://bugzilla.gnome.org/show_bug.cgi?id=742953

27cf0fa Fix core context creation in GdkGLContext
gdk/gdkgl.c | 16 +++++-----------
gdk/gdkglcontext.c | 2 +-
gdk/gdkwindow.c | 1 -
gdk/x11/gdkglcontext-x11.c | 2 ++
gtk/gtkglarea.c | 2 --
5 files changed, 8 insertions(+), 15 deletions(-)

Upstream: git.gnome.org


  • Share